You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Semantic Tokens Inspector: no write action per highlighting pass, and show the language server, its legend and the raw data #2349
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