fwcd / kotlin-language-server

Kotlin code completion, diagnostics and more for any editor/IDE using the Language Server Protocol
MIT License
1.65k stars 206 forks source link

Remove semantic tokens for string literals (templates) #548

Closed fwcd closed 8 months ago

fwcd commented 8 months ago

Currently, the language server emits a single token for every string literal, which in clients like VSCode covers up interpolations:

Screenshot 2024-01-16 at 01 18 52

Ideally we should probably slice up the string literals to exclude child ranges (that's what SourceKit-LSP seems to do), but for now we are better off not including string literals, thereby deferring the highlighting to e.g. the TextMate grammar:

Screenshot 2024-01-16 at 01 19 08