Open Veykril opened 3 years ago
In my opinion this is not a feature request but a bug. I also ran into this and it seems like it isn't even based on the semantic tokens but instead does random stuff on e.g. quote and paren characters. Therefore it seems like a workaround is not too easy.
Does this issue occur when all extensions are disabled?: Yes
VSCode doesn't seem to send a
textDocument/documentHighlight
request when the cursor isn't on an identifier(whatever this means to vscode). The LSP documentation doesn't state that this request should only be sent in that case though.We ran into this in rust-analyzer when trying to highlight exit points, which in rust can have the form of a simple
?
character. So having the cursor on this character currently can't trigger the highlight. https://github.com/rust-analyzer/rust-analyzer/pull/9375