diff options
author | Kyle Smith | 2023-03-08 02:11:43 +0000 |
---|---|---|
committer | GitHub | 2023-03-08 02:11:43 +0000 |
commit | 44ff8a1df1f69733bc40ea866674fcfd7e0cdded (patch) | |
tree | 91e69301836f46a3c0676be821d4ca380212c797 /helix-term/src/ui/mod.rs | |
parent | 3849ca4c2abdb1c6076d391eab4c3f43dda30234 (diff) |
LSP: Support textDocument/prepareRename (#6103)
* LSP: Support textDocument/prepareRename
'textDocument/prepareRename' can be used by the client to ask the
server the range of the symbol under the cursor which would be changed
by a subsequent call to 'textDocument/rename' with that position.
We can use this information to fill the prompt with an accurate prefill
which can improve the UX for renaming symbols when the symbol doesn't
align with the "word" textobject. (We currently use the "word"
textobject as a default value for the prompt.)
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
* clippy fixes
* rustfmt
* Update helix-term/src/commands/lsp.rs
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
* Update helix-term/src/commands/lsp.rs
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
* fix clippy from suggestions
* Update helix-term/src/commands/lsp.rs
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
---------
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
Diffstat (limited to 'helix-term/src/ui/mod.rs')
0 files changed, 0 insertions, 0 deletions