send out missing selection change event when moving cells.

This commit is contained in:
rebornix
2020-05-26 08:07:51 -07:00
parent 553a11c6c8
commit b26e0bcf39
2 changed files with 5 additions and 4 deletions

View File

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