microsoft / microsoft/vscode-css-languageservice
Allows to disable CSS variables suggestions
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 384
- Forks
- 217
- Avg merge
- 3d 16h
- Merged PRs (30d)
- 14
Description
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:
- https://marketplace.visualstudio.com/items?itemName=vunguyentuan.vscode-css-variables
- https://marketplace.visualstudio.com/items?itemName=phoenisx.cssvar
The problems is that the suggestions from the different extensions are merged with the one from vscode-css-languageservice:
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.
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 #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: https://github.com/willofindie/vscode-cssvar/issues/66 https://github.com/willofindie/vscode-cssvar/issues/83
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue does not name files or tests; start by locating the CSS variable completion entry point in vscode-css-languageservice and tracing how completion settings are handled. Done means providing a setting that suppresses the service's CSS variable suggestions while leaving other completions available for external extensions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- css, typescript
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100