📓 Separate selections and text model

This commit is contained in:
rebornix
2020-06-18 19:22:08 -07:00
parent 9b38a98bc4
commit 5d9e565557
16 changed files with 485 additions and 378 deletions

View File

@@ -40,7 +40,7 @@ export class MainThreadNotebookDocument extends Disposable {
) {
super();
this._textModel = new NotebookTextModel(handle, viewType, supportBackup, uri);
this._textModel = new NotebookTextModel(handle, viewType, supportBackup, uri, undoRedoService);
this._register(this._textModel.onDidModelChangeProxy(e => {
this._proxy.$acceptModelChanged(this.uri, e);
this._proxy.$acceptEditorPropertiesChanged(uri, { selections: { selections: this._textModel.selections }, metadata: null });