-
Notifications
You must be signed in to change notification settings - Fork 28.1k
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
How can I get the little color icon next to color names in my custom language? #38959
Comments
It's a proposed protocol extension. See |
Is it possible the vscode.d.ts version that is downloaded doesn't have these features? node_modules/vscode-languageclient/lib/client.d.ts(1,139): error TS2305: Module '"/home/wix/projects/stylable-intelligence/packages/client/node_modules/vscode/vscode"' has no exported member 'ProviderResult'. |
It's in 1.18. Make sure that you have "engines": {
"vscode": "1.18.x"
}, in your extension's |
Thanks. My engine was outdated. |
Writing an LSP extension for our CSS preprocessor, I notice that when I get a color completion from CSS (I proxy the CSS service through mine) I get the little color indicator next to the value, but in the file itself there is no indicator (see pic).
I haven't found anything in the LS Protocol or in TM grammars to make this possible in my language.
Is it at all possible to get the color icon through an extension / grammar, or is it a special VSCode feature for CSS only?
Reproduces without extensions: Yes/No
The text was updated successfully, but these errors were encountered: