mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-28 17:23:19 -05:00
Change notebook to not save connections added through dropdown (#6254)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user