-
Notifications
You must be signed in to change notification settings - Fork 215
Fix client not starting (#608) #657
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
Conversation
Hey @fbalda. We already do this when opening a document (and on activation for already opened files): tailwindcss-intellisense/packages/vscode-tailwindcss/src/extension.ts Lines 696 to 697 in a740b0e
tailwindcss-intellisense/packages/vscode-tailwindcss/src/extension.ts Lines 645 to 649 in a740b0e
Were you able to identify exactly why the existing |
Hey @bradlc, yeah I totally missed that, sorry for the premature PR, shouldn't have rushed it. tailwindcss-intellisense/packages/vscode-tailwindcss/src/extension.ts Lines 645 to 649 in a740b0e
fails for me, I get: error parsing glob '!/{/.git,/.svn,/.hg,/CVS,/.DS_Store,/Thumbs.db,"/*.js": { "when": "$(basename).ts" },/.classpath,/.project,/.settings,/.factorypath,/.git/,/node_modules/,/.hg/,/.svn/**}': nested alternate groups are not allowed
The EDIT: Did some quick tests to confirm that the curly brackets are indeed not needed, the exclude pattern will work without them |
Can you share your full VS Code settings in JSON format please @fbalda? |
@bradlc Sure, here you go:
|
Thank you! I'm pretty sure your Here's how I think you meant to configure it: "files.exclude": {
- "\"**/*.js\": { \"when\": \"$(basename).ts\" }": true,
+ "**/*.js": { "when": "$(basename).ts" },
"**/.classpath": true,
"**/.project": true,
"**/.settings": true,
"**/.factorypath": true
} Can you confirm whether this fixes your issue? |
It does indeed, thank you! |
Fixes #608 where the extension client (sometimes?) doesn't start after restarting VSCode.
Workspace.createFileSystemWatcher
doesn't seem to create events for already existing files when starting VSCode so an initial scan for config files is necessary.