multilspy icon indicating copy to clipboard operation
multilspy copied to clipboard

expose SemanticTokensLegend

Open jbellis opened this issue 11 months ago • 4 comments

I'm not sure how to do this because there are no methods returning SemanticTokensLegend. Apparently it's supposed to be determined when first connecting to the server? I had Claude take a stab at this but it wrote some code that made start_server() hang. I don't understand python's async or multilspy's design well enough to fix it.

jbellis avatar Jan 26 '25 22:01 jbellis

Spec link: https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocument_semanticTokens

jbellis avatar Jan 26 '25 22:01 jbellis

Oh, I did expose SemanticTokens first, that part was straightforward https://github.com/jbellis/multilspy/commit/7dd61d990b78040dc50dad5ee08d9658af29e965

jbellis avatar Jan 26 '25 22:01 jbellis

Dear @jbellis, would you kindly be able to create a PR for semantic tokens feature? This would be a great add to multilspy!

LakshyAAAgrawal avatar Feb 21 '25 02:02 LakshyAAAgrawal

You're welcome to use the code but lspy turned out to be a poor fit for my use case so I moved on.

jbellis avatar Feb 21 '25 15:02 jbellis