-
Notifications
You must be signed in to change notification settings - Fork 194
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto-switch CSS files to
tailwindcss
language in valid projects (#1087
) This is an alternative design to part of #947. In that PR we'd be setting a default for *all* CSS files whether they're in a Tailwind CSS project or not. Instead we: 1. Detect that an opened CSS file is in a Tailwind CSS project and switch the language to `tailwindcss`. If you manually set it back to the CSS language we won't switch it back to `tailwindcss` again until you reload VSCode. 2. Switch any documents after the language server has found a project. This ensures that when starting a new project and you've created a CSS file typing `@import "tailwindcss"` and saving it will then switch the language to `tailwindcss`.
- Loading branch information
1 parent
3014df5
commit 3b4b5ba
Showing
2 changed files
with
40 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters