microsoft / vscode-powerquery

Visual Studio Code extension for Power Query / M.
MIT License
86 stars 16 forks source link

Implement LSP contract for Semantic Tokens #223

Open mattmasson opened 3 months ago

mattmasson commented 3 months ago

Attempt to implement semantic token parsing using the LSP API - #217

Before: image

After: image

However, I'm not sure if it is working as expected as the "Developer: Inspect Editor Tokens and Scope" only seems to show semantic token info for the as keyword.

image

test script:

section foo;

myfunc = (table as table, param as record, optional hello) =>
    let
        a = table,
        b = hello
    in
        a;

This PR builds on #222 (which should get merged first).