Skip to content

Improve error message when a workspace folder is inaccessible #1276

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Mar 20, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Check for directory visibility _and_ readability
  • Loading branch information
thecrypticace committed Mar 20, 2025
commit 61f95ce953fa3dc0b1a88a95c9c0d4f32a105c3a
2 changes: 1 addition & 1 deletion packages/tailwindcss-language-server/src/tw.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ export class TW {
let base = baseUri.fsPath

try {
await fs.access(base)
await fs.access(base, fs.constants.F_OK | fs.constants.R_OK)
} catch (err) {
console.error(
`Unable to access the workspace folder [${base}]. This may happen if the directory does not exist or the current user does not have the necessary permissions to access it.`,
Expand Down