eclipse-lsp4e / eclipse-lsp4e/lsp4e

Semantic Tokens from LSP are not recognized and not colored

Open
#821 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
85
Forks
69
Avg merge
8h 33m
Merged PRs (30d)
6

Description

Following the discussion in #274 I create this issue.

Semantic tokens received from the language server are not recognised and mapped to an appropriate colour. Therefore, the files remain black and white without any additional TextMate grammar.

By manually defining a theme that maps the LSP tokens to appropriate colours, the files will appear coloured. This should not be done by the developer of a plugin, but rather in lsp4e.

My first approach would be to map the LSP tokens to the corresponding tokens in eclipse. This way it is possible to change the colours by changing the active theme. Otherwise this would not be possible by defining static colours for a token.

Is there a list of supported token names in Eclipse?
What is the minimum set of tokens that each theme needs to define?
What other approaches might we discuss?

Contributor guide

Open the contributing guide

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 reading discussion #274 and the LSP 3.17 semantic tokens specification linked in the issue. Trace how lsp4e receives and handles semantic tokens, then determine how Eclipse theme token mappings should be defined. Done means supported LSP tokens are recognized and colored through the active theme, with the supported token set and minimum theme requirements settled.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
tooling
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.