-
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.
Support multiple snippets in a single TextDocumentEdit
rust-lang/rust-analyzer#15876 https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/generate_trait_from_impl.rs#L20 * eglot-x.el (eglot-x-enable-snippet-text-edit): Add link to an example. (eglot-x--unify-snippets, eglot-x--work-around-snippet-bug): New defuns. (eglot-x--apply-text-edits): Give a single, merged range to snippet-expansion-fn when there are multiple snippets in a text-edit.
- Loading branch information
Showing
1 changed file
with
66 additions
and
8 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