Skip to content
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

feat: add VS Code configuration defaults #947

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

eltigerchino
Copy link

The recommended VS code settings can be provided by default when the extension is installed using the configuration defaults contribution point in the extension package.json. This would mean less setup for users who install the extension and benefits people who may have missed reading the README first (sadly I was one of those people).

@eltigerchino eltigerchino changed the title add vs code configuration defaults feat: add VS Code configuration defaults Apr 5, 2024
thecrypticace added a commit that referenced this pull request Nov 11, 2024
)

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`.
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.

1 participant