SpontanCombust / witcherscript-ide

Language Server implementation for WitcherScript - Witcher 3's scripting language.
https://spontancombust.github.io/witcherscript-ide/
Apache License 2.0
10 stars 0 forks source link

[FEATURE] Selection Range request #27

Closed SpontanCombust closed 4 weeks ago

SpontanCombust commented 2 months ago

Implement the "Selection Range" Language Server request https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocument_selectionRange

SpontanCombust commented 2 months ago

The request turned out to be made for something different from what I was expecting. My initial assumption was that the request makes it so that when you hold Ctrl over an identifier, it would be underlined. This turned out to be done entirely through "Goto" requests and this request is all about expanding/shrinking a scope selection like here: https://code.visualstudio.com/docs/editor/codebasics#_shrinkexpand-selection

SpontanCombust commented 4 weeks ago

Released with v0.3.0