From 8ec1a05296414704093f57a427a8b181ccdbb1ed Mon Sep 17 00:00:00 2001 From: Charles Gagnon Date: Wed, 3 Jul 2019 00:11:02 +0000 Subject: [PATCH] Change notebook to not save connections added through dropdown (#6254) --- src/sql/workbench/parts/notebook/notebookActions.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sql/workbench/parts/notebook/notebookActions.ts b/src/sql/workbench/parts/notebook/notebookActions.ts index 1c4796eb54..42f316056b 100644 --- a/src/sql/workbench/parts/notebook/notebookActions.ts +++ b/src/sql/workbench/parts/notebook/notebookActions.ts @@ -15,7 +15,7 @@ import { INotebookModel } from 'sql/workbench/parts/notebook/models/modelInterfa import { CellType, CellTypes } from 'sql/workbench/parts/notebook/models/contracts'; import { NotebookComponent } from 'sql/workbench/parts/notebook/notebook.component'; import { getErrorMessage, getServerFromFormattedAttachToName, getDatabaseFromFormattedAttachToName } from 'sql/workbench/parts/notebook/notebookUtils'; -import { IConnectionManagementService } from 'sql/platform/connection/common/connectionManagement'; +import { IConnectionManagementService, ConnectionType } from 'sql/platform/connection/common/connectionManagement'; import { ICapabilitiesService } from 'sql/platform/capabilities/common/capabilitiesService'; import { ConnectionProfile } from 'sql/platform/connection/common/connectionProfile'; import { noKernel } from 'sql/workbench/services/notebook/common/sessionManager'; @@ -494,7 +494,7 @@ export class AttachToDropdown extends SelectBox { try { let connection = await this._connectionDialogService.openDialogAndWait(this._connectionManagementService, { - connectionType: 1, + connectionType: ConnectionType.temporary, providers: this.model.getApplicableConnectionProviderIds(this.model.clientSession.kernel.name) }, useProfile ? this.model.connectionProfile : undefined);