Open ssoher opened 1 year ago
If you open the LSP log panel with “LSP: Toggle Log Panel”, then you can see what capabilities the server has exactly by looking at the response of the initialize
request
Maybe easier: run view.run_command("lsp_dump_buffer_capabilities")
in the ST console when you have a .cs file open.
@rwols I can't feel sad now that the answer is no since I've also learned something, thanks :)
Can we consider this "issue" a feature request then?
It seems JoeRobich added it just 18 days ago: https://github.com/OmniSharp/omnisharp-roslyn/blob/c214d900ca250556bb09156fcb2b27d217a3a523/src/OmniSharp.LanguageServerProtocol/Handlers/OmniSharpDocumentHighlightHandler.cs
But maybe it's just a placeholder, I haven't looked much into it: https://github.com/OmniSharp/omnisharp-roslyn/pull/2463
v1.39.2 should contain that functionality: https://github.com/OmniSharp/omnisharp-roslyn/releases/tag/v1.39.2
I can confirm that replacing the packaged omnisharp version with the latest release 1.39.2 does provide highlighting.
I find it useful when other occurances of the symbol under the caret are highlighted, makes it easy seeing the immediate usages. But this doesn't seem to work in LSP-OmniSharp even when I change
document_highlight_style
tobackground
and add the related scopes with custom background colors to my color theme (using this as a guide https://lsp.sublimetext.io/customization/#document-highlights).Do we have the required capability in the server, am I doing something wrong?