From 46b96bb29e45df59e5ab8feda3d17a9aba0dfed2 Mon Sep 17 00:00:00 2001 From: rebornix Date: Wed, 30 Jun 2021 23:04:11 -0700 Subject: [PATCH] fix #125275. --- src/vs/workbench/api/browser/mainThreadNotebookEditors.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/vs/workbench/api/browser/mainThreadNotebookEditors.ts b/src/vs/workbench/api/browser/mainThreadNotebookEditors.ts index 6714310ec0c..31d9e978497 100644 --- a/src/vs/workbench/api/browser/mainThreadNotebookEditors.ts +++ b/src/vs/workbench/api/browser/mainThreadNotebookEditors.ts @@ -191,8 +191,7 @@ export class MainThreadNotebookEditors implements MainThreadNotebookEditorsShape $trySetSelections(id: string, ranges: ICellRange[]): void { const editor = this._notebookEditorService.getNotebookEditor(id); if (editor) { - // @rebornix how to set an editor selection? - // editor.setSelections(ranges) + editor.setSelections(ranges); } } }