Skip to content

Semantic Tokens Inspector: no write action per highlighting pass, and show the language server, its legend and the raw data #2349

In review

Description

@lagergren

Gap 10 of #2334: the Semantic Tokens Inspector.

A write action per highlighting pass

While the inspector is open, each highlighting pass formats its tokens through WriteCommandAction.runWriteCommandAction (SemanticTokensInspectorManager), which is a write action on the UI thread. It only inserts tags into a throwaway document. A StringBuilder would do the same without a write action, which also cancels the highlighting passes that run.

What it doesn't show

The inspector shows:

  • no name of the language server the tokens come from;
  • not its legend;
  • not the raw data of the answer.

With several language servers on a file, it shows the tokens of the one whose answer is used only.

Proposal

  • Format the tokens with a StringBuilder.
  • Show the language server, its legend, and the raw data next to the decoded tokens.

Activity

  1. added this to the 0.30.3 milestone on Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions