未验证 提交 bc4c7ccb 编写于 作者: J João Moreno 提交者: GitHub

Merge pull request #51235 from 1AmNegan/keybinding-next-change-fix

Center viewport for nextChange/previousChange using keybinding
......@@ -478,7 +478,7 @@ export class MoveToPreviousChangeAction extends EditorAction {
const position = new Position(change.modifiedStartLineNumber, 1);
outerEditor.setPosition(position);
outerEditor.revealPosition(position);
outerEditor.revealPositionInCenter(position);
}
}
registerEditorAction(MoveToPreviousChangeAction);
......@@ -520,7 +520,7 @@ export class MoveToNextChangeAction extends EditorAction {
const position = new Position(change.modifiedStartLineNumber, 1);
outerEditor.setPosition(position);
outerEditor.revealPosition(position);
outerEditor.revealPositionInCenter(position);
}
}
registerEditorAction(MoveToNextChangeAction);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册