mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 02:03:53 +00:00
fix: cursor position after item move command
closes Item movers need some fixes #8492
This commit is contained in:
parent
05fc97e31b
commit
3dce8a3924
@ -52,7 +52,7 @@ export async function applySnippetTextEdits(editor: vscode.TextEditor, edits: vs
|
||||
} else {
|
||||
builder.replace(indel.range, indel.newText);
|
||||
}
|
||||
lineDelta = countLines(indel.newText) - (indel.range.end.line - indel.range.start.line);
|
||||
lineDelta += countLines(indel.newText) - (indel.range.end.line - indel.range.start.line);
|
||||
}
|
||||
});
|
||||
if (selections.length > 0) editor.selections = selections;
|
||||
|
Loading…
Reference in New Issue
Block a user