We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2b8e0a0 commit 5200dcdCopy full SHA for 5200dcd
1 file changed
src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.ts
@@ -405,6 +405,10 @@ export class NotebookEditorWidget extends Disposable implements INotebookEditor
405
endLineNumber: selection.endLineNumber || selection.startLineNumber,
406
endColumn: selection.endColumn || selection.startColumn
407
});
408
+ editor.revealPositionInCenterIfOutsideViewport({
409
+ lineNumber: selection.startLineNumber,
410
+ column: selection.startColumn
411
+ });
412
}
413
if (!cellOptions.options?.preserveFocus) {
414
editor.focus();
0 commit comments