microsoft / language-server-protocol

Defines a common protocol for language servers.
https://microsoft.github.io/language-server-protocol/
Creative Commons Attribution 4.0 International
10.91k stars 763 forks source link

feat: One-way linked editing ranges #1935

Open IndianBoy42 opened 1 month ago

IndianBoy42 commented 1 month ago

Suppose for example a lsp server wanted to use linked editing ranges for more fluid renaming of local variables. It would make more sense for changes at the declaration/definition site to propagate to the usages, while changes at the usage sites do not rename the variables (the user probably just wanted to change that one usage to some other variables)