fix: cursor position after item move command

closes Item movers need some fixes #8492
This commit is contained in:
Eduardo Canellas 2021-05-24 13:09:26 -03:00
parent 05fc97e31b
commit 3dce8a3924

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;