Skip to content
Discussion options

You must be logged in to vote

Semantic tokens are supported by Pylance, not by the open-source Pyright language server. Pyright does not advertise a semanticTokensProvider, so the Method not found: 'textDocument/semanticTokens/full' response is expected.

The Pyright VS Code extension README also calls out semantic token highlighting as one of Pylance's additional capabilities: https://github.com/microsoft/pyright/blob/main/packages/vscode-pyright/README.md#static-type-checker-for-python

There are a few semantic-token references in Pyright's LSP test infrastructure, but those describe client capabilities and refresh handling; they do not implement or register a semantic-token provider.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rchiodo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants