pappasam / jedi-language-server

A Python language server exclusively for Jedi. If Jedi supports it well, this language server should too.
MIT License
596 stars 45 forks source link

WIP: Semantic tokens support #196

Closed tonich-sh closed 2 years ago

tonich-sh commented 2 years ago

Currently is very slow.

pappasam commented 2 years ago

@tonich-sh to run the tests locally: make test

tonich-sh commented 2 years ago

@tonich-sh to run the tests locally: make test

Ok, thanks.

pappasam commented 2 years ago

Sorry for the late response (been distracted recently), I'll respond more quickly from here on out. I'm guessing we haven't-yet implemented a mechanism to expose these capabilities to language clients? When I run :call CocActionAsync('showSemanticHighlightInfo') in coc, it returns the following message:

Semantic highlights info

SemanticTokens provider not found, your languageserver may
not support it

I assume that, given the WIP label, you're still working on exposing that final piece?

tonich-sh commented 2 years ago

I didn't tested this feature with coc, only with VSCode. In VSCode semantic tokens works. There is another problem: vscode-python first calls SemanticTokens/full and then calls SemanticTokens/range. And I'm trying to make SemanticTokens/full asynchronous.

pappasam commented 2 years ago

:+1: sounds good!

pappasam commented 2 years ago

Closing this for now due to inactivity, feel free to re-open if any more progress is made!