diff --git a/src/sql/parts/notebook/notebookInput.ts b/src/sql/parts/notebook/notebookInput.ts index 52f83b2c33..dea149e9ba 100644 --- a/src/sql/parts/notebook/notebookInput.ts +++ b/src/sql/parts/notebook/notebookInput.ts @@ -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); }