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);