helix/helix-term/src
Kyle Smith 44ff8a1df1
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>
2023-03-08 11:11:43 +09:00
..
commands LSP: Support textDocument/prepareRename (#6103) 2023-03-08 11:11:43 +09:00
keymap feat(dap): implement Restart request (#5651) 2023-03-06 18:19:53 +09:00
ui DynamicPicker: Recalculate column widths for new options (#6004) 2023-03-08 10:51:52 +09:00
application.rs LSP: Send replies for malformed and unhandled RPC requests (#6058) 2023-03-08 10:50:57 +09:00
args.rs Fix confusion with using --hsplit --vsplit on startup at same time (#4202) 2022-10-11 09:25:42 -04:00
commands.rs Do not add intermediate lines to jumplist with :<linenum> command. (#5751) 2023-03-08 10:53:31 +09:00
compositor.rs bump msrv to 1.63 (#5570) 2023-02-09 11:24:31 +09:00
config.rs Move top level lsp config to editor.lsp (#1868) 2022-03-28 10:11:52 +09:00
health.rs Print the binary required by the debug adapter (#5195) 2022-12-17 13:03:18 -06:00
job.rs bump msrv to 1.63 (#5570) 2023-02-09 11:24:31 +09:00
keymap.rs keymap: Test backslash escaping in commands 2023-01-25 09:31:58 -06:00
lib.rs Fix new clippy lints (#5892) 2023-02-09 16:27:08 -06:00
main.rs feat(lsp): pass client_info on initialization (#4904) 2022-12-08 21:57:03 -06:00