combine events from edits from ext host.

This commit is contained in:
rebornix
2020-05-27 16:00:49 -07:00
parent 315807911c
commit 8bac4d17ad
6 changed files with 129 additions and 89 deletions

View File

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