NotebookEditor.selection

This commit is contained in:
rebornix
2020-04-22 13:43:52 -07:00
parent 8b7ea333cc
commit 5121bac41d
7 changed files with 77 additions and 1 deletions

View File

@@ -33,6 +33,10 @@ export class MainThreadNotebookDocument extends Disposable {
this._register(this._textModel.onDidModelChange(e => {
this._proxy.$acceptModelChanged(this.uri, e);
}));
this._register(this._textModel.onDidSelectionChange(e => {
const selectionsChange = e ? { selections: e } : null;
this._proxy.$acceptEditorPropertiesChanged(uri, { selections: selectionsChange });
}));
}
applyEdit(modelVersionId: number, edits: ICellEditOperation[]): boolean {