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:
bors[bot] 2021-05-24 16:28:28 +00:00 committed by GitHub
commit a59d41c1df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;