Skip to content

Commit 8b0dc7d

Browse files
authored
Merge pull request #285634 from murataslan1/fix/jumpy-marker-navigation
fix: avoid jumpy scrolling when navigating next/prev problem
2 parents 274865a + 4d07cda commit 8b0dc7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/editor/contrib/gotoError/browser/gotoErrorWidget.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ export class MarkerNavigationWidget extends PeekViewWidget {
358358
}
359359
this._icon.className = `codicon ${SeverityIcon.className(MarkerSeverity.toSeverity(this._severity))}`;
360360

361-
this.editor.revealPositionNearTop(position, ScrollType.Smooth);
361+
this.editor.revealPositionInCenterIfOutsideViewport(position, ScrollType.Smooth);
362362
this.editor.focus();
363363
}
364364

0 commit comments

Comments
 (0)