notebookeditor.selections

This commit is contained in:
rebornix
2021-02-19 17:03:33 -08:00
parent 5d2c9bf299
commit e8966ecaa9
13 changed files with 81 additions and 29 deletions

View File

@@ -692,7 +692,7 @@ export class MainThreadNotebooks extends Disposable implements MainThreadNoteboo
if (notebookEditor.viewModel && options.selection && notebookEditor.viewModel.viewCells[options.selection.start]) {
const focusedCell = notebookEditor.viewModel.viewCells[options.selection.start];
notebookEditor.revealInCenterIfOutsideViewport(focusedCell);
notebookEditor.selectElement(focusedCell);
notebookEditor.focusElement(focusedCell);
}
return notebookEditor.getId();
} else {