Merge #8967
8967: fix cursor position after item move command r=matklad a=eduardocanellas Co-authored-by: Eduardo Canellas <eduardocanellas98@gmail.com>
This commit is contained in:
commit
a59d41c1df
@ -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…
x
Reference in New Issue
Block a user