mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 12:04:04 +01:00
make NotebookEditor#selections writeable, https://github.com/microsoft/vscode/issues/125275
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user