Add LSP semantic token support for Power Query#274
Merged
JordanBoltonMN merged 6 commits intomasterfrom Apr 1, 2026
Merged
Conversation
added 4 commits
March 30, 2026 11:52
…icTokens # Conflicts: # client/package-lock.json # client/package.json # package-lock.json # package.json # scripts/package-lock.json # scripts/package.json # server/package-lock.json # server/package.json
mattmasson
approved these changes
Apr 1, 2026
added 2 commits
April 1, 2026 08:43
mattmasson
approved these changes
Apr 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Enables semantic highlighting by implementing the standard LSP textDocument/semanticTokens/full protocol, replacing
the previously scaffolded but disabled custom request approach.
Changes:
Encodes PartialSemanticToken[] from PQLS into the LSP wire format.
via connection.languages.semanticTokens.on(...). Removed commented-out custom powerquery/semanticTokens handler.
this automatically when the server advertises the capability).
all emitted token types (variable, function, parameter, keyword, number, string, type, operator), and encoding
invariants (monotonic positions, legend bounds, immutability).
Token legend: 13 types (variable, function, parameter, property, keyword, number, string, comment, type, namespace,
operator, typeParameter, modifier) and 5 modifiers (declaration, definition, readonly, defaultLibrary, deprecated).