Closed glekner closed 1 year ago
I've had this issue as well, and after disabling tailwindCSS.validate
, I think it's pretty much gone. So that's probably the root cause, not anything else in the extension.
also have this issue on windows OS in my nrwl/nx monorepo. recent occurrence. about 10-30 min in my project becomes unusable and im forced to constantly enable/disable this extension or shut down/start up vscode entirely
yep, also observing this. can i simply downgrade until this is fixed?
Do you all have the prettier extension installed? If so, if you downgrade to v0.2.5 do you still see this issue?
@thecrypticace Do you mean this one? https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode I am using it, version 9.10.4. However the last release is months ago and I am pretty sure the issue is not that old.
That is the one I'm talking about yes. There've been reports of slowness regarding the tailwindcss prettier plugin inside VSCode which I'm investigating. I'm not certain yet if they're related. Just gathering data currently.
That is the one I'm talking about yes. There've been reports of slowness regarding the tailwindcss prettier plugin inside VSCode which I'm investigating. I'm not certain yet if they're related. Just gathering data currently.
I use that extension as well, but not the tailwind plugin for prettier. So I'm not sure that's related.
Ah that's good to know! Thanks!
Also running into this. At first i thought it was the custom regex rules but happens with vanilla settings too. It is def always Tailwind + Prettier when it hangs but removing tailwind extension fixes it up
Can we do something to help? This is driving me nuts.
For those that are experiencing this, is your codebase a Vue app? Do you have the Volar extension installed? I first blamed the Tailwind plugin but removing it did not fix this issue. When viewing the locked up VS Code Extension Host process it has a call chain starting with volar -> prettier -> tailwind. In the Volar issues they have been reporting this bug as well and supposedly it's fixed in the most recent pre-release. 🤞
Hey all. I'm more than happy to take a look into this issue but it's going to be incredibly difficult without some more information. If somebody could share the following that would be a great help:
code --list-extensions --show-versions
)It would also be interesting to know what everyone is actually seeing when this is happening. Is everyone seeing the code actions message? And does it ever only have Tailwind CSS IntelliSense listed? Or are there always other extensions mentioned?
@glekner, does the issue go away for you if you downgrade to v0.9.7
?
@bradlc I managed to reproduce the issue with v0.9.7
now.
Not sure how to proceed here, could this be a combination with the prettier
extension?
Anyway we can rule out the issue being coupled with 0.9.8
.
@bradlc I am experiencing this issue as well in a NextJS 13 and TypeScript codebase. I did see the code actions message too, both Tailwind CSS IntelliSense and ESLint were listed but will take screenshots next time.
```json { "explorer.confirmDelete": false, "files.autoSave": "onFocusChange", "editor.renderWhitespace": "none", "editor.autoClosingBrackets": "always", "editor.autoClosingQuotes": "always", "window.restoreWindows": "all", "eslint.packageManager": "yarn", "npm.packageManager": "yarn", "javascript.updateImportsOnFileMove.enabled": "always", "explorer.confirmDragAndDrop": false, "editor.codeActionsOnSave": { "source.organizeImports": true, "source.fixAll.eslint": false }, "workbench.colorTheme": "Material Theme Palenight High Contrast", "workbench.iconTheme": "material-icon-theme", "workbench.colorCustomizations": {}, "editor.fontSize": 13, "git.autofetch": true, "[javascript]": { "editor.defaultFormatter": "esbenp.prettier-vscode" }, "[html]": { "editor.defaultFormatter": "esbenp.prettier-vscode" }, "typescript.updateImportsOnFileMove.enabled": "always", "[json]": { "editor.defaultFormatter": "esbenp.prettier-vscode" }, "[python]": { "editor.defaultFormatter": "ms-python.python", "editor.formatOnType": true }, "versionlens.npm.caching.duration": 1, "versionlens.suggestions.showOnStartup": true, "[svelte]": {}, "go.autocompleteUnimportedPackages": true, "go.useLanguageServer": true, "[go]": { "editor.defaultFormatter": "golang.go" }, "[typescript]": { "editor.defaultFormatter": "esbenp.prettier-vscode" }, "[typescriptreact]": { "editor.defaultFormatter": "esbenp.prettier-vscode" }, "workbench.tree.indent": 16, "workbench.tree.renderIndentGuides": "always", "files.autoSaveDelay": 5000, "prettier.tabWidth": 4, "prettier.singleQuote": true, "prettier.printWidth": 120, "prettier.jsxSingleQuote": true, "prettier.arrowParens": "avoid", "[jsonc]": { "editor.defaultFormatter": "esbenp.prettier-vscode" }, "prettier.trailingComma": "all", "files.associations": { "*.rmd": "markdown" }, "workbench.editorAssociations": { "*.ipynb": "default" }, "workbench.startupEditor": "newUntitledFile", "[c]": { "editor.wordBasedSuggestions": false, "editor.suggest.insertMode": "replace", "editor.semanticHighlighting.enabled": true }, "[css]": { "editor.defaultFormatter": "esbenp.prettier-vscode" }, "todo-tree.general.tags": ["BUG", "HACK", "FIXME", "TODO", "XXX", "[ ]", "[x]"], "todo-tree.regex.regex": "(//|#|
What version of Tailwind CSS IntelliSense are you using?
v0.9.8+
What version of Tailwind CSS are you using?
v3.2.7
What package manager are you using?
yarn
What operating system are you using?
macOS
Tailwind config
VS Code settings
Reproduction URL
no need
Describe your issue
VSCode Hangs indefinitely while Formatting on save since version 0.9.8 and above. This can start happening between 10-30 min after starting a coding session. Disabling this extension solves the Issue, can you please take a look?