-
Notifications
You must be signed in to change notification settings - Fork 30k
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
Dedupe identical suggestions #16040
Comments
We should maybe just dedupe identical suggestions |
Yes, I thought about it. But this can cause performance degradation for large collection. |
@mrmlnc Your extension could choose to replace the built-in css completions by contributing to a stronger document selector. Adding more configuration option to css to doesn't make things easier. |
My extensions provide completion for all Symbols in:
Hmm, yeah, I don't thought about removing suggestions for the current document. This sounds reasonable. Now I use parser/mixin.ts and parser/variable.ts to generate suggestions from the current document by position parser/symbols.ts#L28. It seems to me, that this must easily integrate into your service. However, there are problems:
|
Small clarification:
|
@mrmlnc For pull requests, use vscode-css-languageservice. Bug reports/feature requests better here where historically we manage all css/less/scss related issues. |
I am closing this as a dupe of #17068 |
Hello, VS Code team!
/cc @aeschli — because he's God of the CSS service in VS Code
/cc @Tyriar — because I know that he uses the
vscode-scss
and may regard the proposal as a user/cc any VS Code team members and users
I am the creator of two very useful (😅) plugins: vscode-less and vscode-scss.
These plugins provide more informative suggestions for Less and Sass symbols (such as Variables, Mixins and Functions) from all files in the workspace (including
@import
and// <reference...>
comments).And it would be nice if users could disable the standard suggestions for Symbols because they have duplicates.
For example, Variables in Less:
And Functions in Sass:
For users. Please, use GitHub emotions:
👍 - upvote
👎 - downvote
The text was updated successfully, but these errors were encountered: