提交 9451b784 编写于 作者: J Johannes Rieken

fix #38772

上级 7db472ba
......@@ -386,11 +386,13 @@ export class SnippetSession {
next(): void {
const newSelections = this._move(true);
this._editor.setSelections(newSelections);
this._editor.revealPositionInCenterIfOutsideViewport(newSelections[0].getPosition());
}
prev(): void {
const newSelections = this._move(false);
this._editor.setSelections(newSelections);
this._editor.revealPositionInCenterIfOutsideViewport(newSelections[0].getPosition());
}
private _move(fwd: boolean | undefined): Selection[] {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册