Skip to content

Commit 067fbc8

Browse files
committed
microsoft#90068 Adopt to revealPositionNearTop
1 parent 127c344 commit 067fbc8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

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

319-
this.editor.revealPositionInCenter(position, ScrollType.Smooth);
319+
this.editor.revealPositionNearTop(position, ScrollType.Smooth);
320320
this.editor.focus();
321321
}
322322

0 commit comments

Comments
 (0)