make NotebookEditor#selections writeable, https://github.com/microsoft/vscode/issues/125275

This commit is contained in:
Johannes Rieken
2021-06-07 17:07:46 +02:00
parent cec19dcfdc
commit 76fe0c90b0
4 changed files with 22 additions and 1 deletions

View File

@@ -186,4 +186,12 @@ export class MainThreadNotebookEditors implements MainThreadNotebookEditorsShape
notebookEditor.setEditorDecorations(key, range);
}
}
$trySetSelections(id: string, ranges: ICellRange[]): void {
const editor = this._notebookEditorService.getNotebookEditor(id);
if (editor) {
// @rebornix how to set an editor selection?
// editor.setSelections(ranges)
}
}
}