mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 10:08:49 +01:00
Refine notebookEditor proposal (#149656)
For #149271 - `NotebookEditor.document` -> `NotebookEditor.notebook` - Add `selection` to for setting primary selections. Matches `TextDocument.selection` - Deprecate `showNotebookDocument`
This commit is contained in:
@@ -105,6 +105,15 @@ export class ExtHostNotebookEditor {
|
||||
get document() {
|
||||
return that.notebookData.apiNotebook;
|
||||
},
|
||||
get notebook() {
|
||||
return that.notebookData.apiNotebook;
|
||||
},
|
||||
get selection() {
|
||||
return that._selections[0];
|
||||
},
|
||||
set selection(selection: vscode.NotebookRange) {
|
||||
this.selections = [selection];
|
||||
},
|
||||
get selections() {
|
||||
return that._selections;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user