microsoft / microsoft/vscode-languageserver-node

How to support CompletionItemKind#Color in LSP client completion?

Open
#1,398 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature-request
Dominant language
TypeScript
Stars
1.8k
Forks
404
Avg merge
2d 8h
Merged PRs (30d)
14

Description

The CSS language server returns CompletionItemKind#Color:

image

But I wonder how to interpret this Color in LSPclient side to show in completion the proper color like you did on vscode side.

It seems that LSP client should interpret the color name (ex: red), hexadecimal color (ex : #FFFFF) etc, is it the right direction?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the LSP client's handling of CompletionItemKind and compare it with the CSS language server response shown in the issue. Review how VS Code presents color completion items and determine the expected client-side behavior for names and hexadecimal values. Done means the interpretation and required client behavior are clearly specified and supported by appropriate client tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
devtools
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.