Skip to content

Conversation

@thecrypticace
Copy link
Contributor

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.

@thecrypticace
Copy link
Contributor Author

@philipp-spiess thoughts on this design?

@thecrypticace thecrypticace marked this pull request as ready for review November 11, 2024 15:14
@thecrypticace thecrypticace changed the base branch from feat/v4-tweaks to main November 11, 2024 15:47
@thecrypticace thecrypticace force-pushed the feat/switch-css-to-tailwindcss branch from efcfbf1 to fb871cf Compare November 11, 2024 15:47
@thecrypticace thecrypticace merged commit 3b4b5ba into main Nov 11, 2024
@thecrypticace thecrypticace deleted the feat/switch-css-to-tailwindcss branch November 11, 2024 15:48
thecrypticace added a commit that referenced this pull request Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants