mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
Don't Inform extHostNotebookDocuments Unnecessarily on Cell Source Changes (#6981)
* Dont tell exthostnotebookdocuments on cell source * Update comment
This commit is contained in:
@@ -574,7 +574,12 @@ export class MainThreadNotebookDocumentsAndEditors extends Disposable implements
|
|||||||
addedEditors.forEach(editor => {
|
addedEditors.forEach(editor => {
|
||||||
let modelUrl = editor.uri;
|
let modelUrl = editor.uri;
|
||||||
const store = new DisposableStore();
|
const store = new DisposableStore();
|
||||||
store.add(editor.contentChanged((e) => this._proxy.$acceptModelChanged(modelUrl, this._toNotebookChangeData(e, editor))));
|
store.add(editor.contentChanged((e) => {
|
||||||
|
// Cell source updates are handled by vscode editor updates in main/extHost Documents
|
||||||
|
if (e.changeType !== NotebookChangeType.CellSourceUpdated) {
|
||||||
|
this._proxy.$acceptModelChanged(modelUrl, this._toNotebookChangeData(e, editor));
|
||||||
|
}
|
||||||
|
}));
|
||||||
this._modelToDisposeMap.set(editor.uri.toString(), store);
|
this._modelToDisposeMap.set(editor.uri.toString(), store);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user