We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 274865a + 4d07cda commit 8b0dc7dCopy full SHA for 8b0dc7d
src/vs/editor/contrib/gotoError/browser/gotoErrorWidget.ts
@@ -358,7 +358,7 @@ export class MarkerNavigationWidget extends PeekViewWidget {
358
}
359
this._icon.className = `codicon ${SeverityIcon.className(MarkerSeverity.toSeverity(this._severity))}`;
360
361
- this.editor.revealPositionNearTop(position, ScrollType.Smooth);
+ this.editor.revealPositionInCenterIfOutsideViewport(position, ScrollType.Smooth);
362
this.editor.focus();
363
364
0 commit comments