Change notebook to not save connections added through dropdown (#6254)

This commit is contained in:
Charles Gagnon
2019-07-03 00:11:02 +00:00
committed by GitHub
parent c4bf1b4180
commit 8ec1a05296

View File

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