fannheyward/coc-pyright

No semantic token group for top level tokens

IvanVZabrodin opened this issue · 0 comments

If I make a function in the global scope, while pyright recognises it is a function, showing hover docs, it does not add a function token to it. As well as this, in said function, if I reference a parameter, it also does not add a token. See below:

image
As you can see, the items in self are highlighted, but not self. Using semantics.inspect, I can see no token has been added to it. This can also be seen in the calling of the function i(), where it not highlighted but it is for d.s().

What's the output of :CocCommand pyright.version
Coc-pyright: 1.1.351, Pyright: 1.1.354

What's the output of :CocCommand workspace.showOutput Pyright

image
image