How to show customize the icon before completion icon? #1852
-
I want to use customized icon for completion items. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hey @durianwaffle, can you explain (with words preferably) what you want to do and what you're missing? The Langium API just exposes the LSP completion kinds directly. You can use the |
Beta Was this translation helpful? Give feedback.
-
These icons are associated with |
Beta Was this translation helpful? Give feedback.
These icons are associated with
CompletionItemKind
, which is a fixed enum (you cannot add your own kind). There was a discussion about adding support for custom icons in microsoft/vscode#113313 (PR), but seems like Microsoft is not planning on merging it. It seems that the only way is to customize the existing icons, according to microsoft/vscode#223340