From cb47cb7dbf24b7996b097f7d0d04022739732c62 Mon Sep 17 00:00:00 2001 From: Raj <44002319+rajmusuku@users.noreply.github.com> Date: Fri, 15 Mar 2019 17:02:00 -0700 Subject: [PATCH] #4365: Make notebook dirty when changing kernel (#4547) --- src/sql/parts/notebook/notebookInput.ts | 1 + 1 file changed, 1 insertion(+) 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); }