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

Allows to disable CSS variables suggestions #398

Open
MangelMaxime opened this issue Jun 30, 2024 · 0 comments
Open

Allows to disable CSS variables suggestions #398

MangelMaxime opened this issue Jun 30, 2024 · 0 comments

Comments

@MangelMaxime
Copy link

Hello,

Currently, this extensions only supports CSS variables suggestions from the current file #156

There are others extensions, that specialise in providing CSS variables suggestions like:

The problems is that the suggestions from the different extensions are merged with the one from vscode-css-languageservice:

CleanShot 2024-06-30 at 15 52 35

This leads to duplicate suggestions and also makes the navigation more difficult. For example, if I try to go to the definition of a variable, I don't go there directly I have a "preview popup" opening asking me to choose which one I want.

CleanShot.2024-06-30.at.15.54.41.mp4

It would be nice if vscode-css-languageservice had a setting to disable their CSS variables suggestions so others extensions can take over.

I think this is important to allows the users to use other extensions for CSS variables completion because there are a lot of different situation to supports:

  • Allows to support completion across files CSS variables across files #156
  • Supports completion in the different CSS languages like SCSS, SASS, LESS, etc.
  • Support completion from an external CSS file
  • etc.

This is not possible / right, to expect from vscode-css-languageservice to supports all these scenarios but I think it is important to not "degrade" the experience of the other extensions who specialise in CSS variables completions.

Related issues: willofindie/vscode-cssvar#66 willofindie/vscode-cssvar#83

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

No branches or pull requests

1 participant