-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement client command "rust-analyzer.rename"
The motivation is to trigger a rename after extract variable assist is applied: rust-lang/rust-analyzer#17587 The implementation might need to be updated later: rust-lang/rust-analyzer#17644 * eglot-x.el (eglot-x-client-commands): New defcustom. (eglot-client-capabilities): Set experimental/commands based on the defcustom. (eglot-x--apply-text-edits): Sync with upstream version of eglot--apply-text-edits, and remove heuristic to detect a snippet, which is no longer needed. (eglot-x-execute-command): New defun. Handle the client command "rust-analyzer.rename" locally. (elgot-execute): New cl-defmethod. Extend the default implementation by calling eglot-x-execute-command for commands.
- Loading branch information
Showing
1 changed file
with
72 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters