We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
rust-anaylzer.selectAndApplySourceChange
1 parent 543a88a commit 148880cCopy full SHA for 148880c
src/language_server_protocol.rs
@@ -847,6 +847,23 @@ impl LanguageClient {
847
}
848
849
850
+ "rust-analyzer.selectAndApplySourceChange" => {
851
+ if let Some(ref edits) = cmd.arguments {
852
+ for edit in edits {
853
+ let workspace_edits: Vec<WorkspaceEditWithCursor> =
854
+ serde_json::from_value(edit.clone())?;
855
+ for edit in workspace_edits {
856
+ self.apply_WorkspaceEdit(&edit.workspaceEdit)?;
857
+ if let Some(cursorPosition) = edit.cursorPosition {
858
+ self.vim()?.cursor(
859
+ cursorPosition.position.line + 1,
860
+ cursorPosition.position.character + 1,
861
+ )?;
862
+ }
863
864
865
866
867
"rust-analyzer.applySourceChange" => {
868
if let Some(ref edits) = cmd.arguments {
869
for edit in edits {
0 commit comments