From dec5be691530684198c339b40ee13adc4e7cf66f Mon Sep 17 00:00:00 2001 From: Justin M <63619224+JustinMDotNet@users.noreply.github.com> Date: Mon, 20 Sep 2021 14:01:21 -0700 Subject: [PATCH] Set kernelAlias in startSession when isValidConnection is truthy (#17102) --- .../workbench/services/notebook/browser/models/notebookModel.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sql/workbench/services/notebook/browser/models/notebookModel.ts b/src/sql/workbench/services/notebook/browser/models/notebookModel.ts index f8cd0f4ebc..cc48777538 100644 --- a/src/sql/workbench/services/notebook/browser/models/notebookModel.ts +++ b/src/sql/workbench/services/notebook/browser/models/notebookModel.ts @@ -712,6 +712,7 @@ export class NotebookModel extends Disposable implements INotebookModel { if (this.isValidConnection(profile)) { this._activeConnection = profile; this._savedConnectionName = profile.connectionName; + kernelAlias = this._currentKernelAlias; } clientSession.onKernelChanging(async (e) => {