#4365: Make notebook dirty when changing kernel (#4547)

This commit is contained in:
Raj
2019-03-15 17:02:00 -07:00
committed by GitHub
parent c9ac49c758
commit cb47cb7dbf

View File

@@ -45,6 +45,7 @@ export class NotebookEditorModel extends EditorModel {
if (notebook.id === this.notebookUri.toString()) {
// Hook to content change events
notebook.modelReady.then(() => {
this._register(notebook.model.kernelChanged(e => this.updateModel()));
this._register(notebook.model.contentChanged(e => this.updateModel()));
}, err => undefined);
}