microsoft / microsoft/language-server-protocol

Add support for icons (like colors)

Open
#1,225 5 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

idea
Dominant language
TypeScript
Stars
13k
Forks
1k
Avg merge
6d 1h
Merged PRs (30d)
10

Description

There is a way for a language server to return colors found in the code. But I miss a way to do the same with icons/images. Some editors display icons referenced in code so that the developer can visually see the icon and not only the path or name of the icon.
The LSP should specify a way to tell a client about icons or images found in the code.
I guess there are two possibilities for the payload:

  1. a path to the icon
  2. the icon data itself (probably best encoded as Base64)

I hope to see this feature in the near future. Would be good for CSS and other languages with images.

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 by reviewing how the Language Server Protocol currently represents colors and how clients consume that information. Read the five comments for constraints and prior discussion. Done means the protocol specifies a clear way for language servers to report referenced icons or images, including the supported payload and client behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
css
Domain
api, 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.