Skip to content

Allow extensions to set colours in completion items outside of label/description #66606

@DanTup

Description

@DanTup

There's a CompletionItemKind.Color but as far as I can tell from the source, it'll only work if the label or documentation matches a specific regex that's hard-coded:

let color = matchesColor(suggestion.label) || typeof suggestion.documentation === 'string' && matchesColor(suggestion.documentation);

screenshot 2019-01-16 at 2 43 33 pm

It would be much better if an extension can supply this value in another field that doesn't require that it replaces the entire label or description with just the hex value.

Metadata

Metadata

Assignees

Labels

*out-of-scopePosted issue is not in scope of VS Codeunder-discussionIssue is under discussion for relevance, priority, approach

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions