From b574f2aa32c9ddcad7321d3dc4a1ec7e4996334c Mon Sep 17 00:00:00 2001 From: Monica Gupta Date: Thu, 1 Oct 2020 16:27:41 -0700 Subject: [PATCH] Fix notebook issue when creating Kusto notebooks 2nd time after launching ADS (#12700) * Fix notebook issue * Removed not required code Co-authored-by: Monica Gupta --- .../services/notebook/browser/models/notebookModel.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/sql/workbench/services/notebook/browser/models/notebookModel.ts b/src/sql/workbench/services/notebook/browser/models/notebookModel.ts index 274af61249..a46e9eab5b 100644 --- a/src/sql/workbench/services/notebook/browser/models/notebookModel.ts +++ b/src/sql/workbench/services/notebook/browser/models/notebookModel.ts @@ -846,12 +846,6 @@ export class NotebookModel extends Disposable implements INotebookModel { if (newConnection) { if (newConnection.serverCapabilities?.notebookKernelAlias) { this._currentKernelAlias = newConnection.serverCapabilities.notebookKernelAlias; - let sqlConnectionProvider = this._kernelDisplayNameToConnectionProviderIds.get('SQL'); - let index = sqlConnectionProvider.indexOf(newConnection.serverCapabilities.notebookKernelAlias.toUpperCase()); - if (index > -1) { - sqlConnectionProvider.splice(index, 1); - } - this._kernelDisplayNameToConnectionProviderIds.set('SQL', sqlConnectionProvider); this._kernelDisplayNameToConnectionProviderIds.set(newConnection.serverCapabilities.notebookKernelAlias, [newConnection.providerName]); } this._activeConnection = newConnection;