提交 0b9ed726 编写于 作者: J Joao Moreno

improve selection restoration

上级 cb6d6aa5
......@@ -791,10 +791,10 @@ export class CommandCenter {
edit.replace(modifiedUri, new Range(new Position(0, 0), modifiedDocument.lineAt(modifiedDocument.lineCount - 1).range.end), result);
workspace.applyEdit(edit);
await modifiedDocument.save();
textEditor.selections = selectionsBeforeRevert;
textEditor.revealRange(visibleRangesBeforeRevert[0]);
await modifiedDocument.save();
}
@command('git.unstage')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册