mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -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 { CellType, CellTypes } from 'sql/workbench/parts/notebook/models/contracts';
|
||||||
import { NotebookComponent } from 'sql/workbench/parts/notebook/notebook.component';
|
import { NotebookComponent } from 'sql/workbench/parts/notebook/notebook.component';
|
||||||
import { getErrorMessage, getServerFromFormattedAttachToName, getDatabaseFromFormattedAttachToName } from 'sql/workbench/parts/notebook/notebookUtils';
|
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 { ICapabilitiesService } from 'sql/platform/capabilities/common/capabilitiesService';
|
||||||
import { ConnectionProfile } from 'sql/platform/connection/common/connectionProfile';
|
import { ConnectionProfile } from 'sql/platform/connection/common/connectionProfile';
|
||||||
import { noKernel } from 'sql/workbench/services/notebook/common/sessionManager';
|
import { noKernel } from 'sql/workbench/services/notebook/common/sessionManager';
|
||||||
@@ -494,7 +494,7 @@ export class AttachToDropdown extends SelectBox {
|
|||||||
try {
|
try {
|
||||||
let connection = await this._connectionDialogService.openDialogAndWait(this._connectionManagementService,
|
let connection = await this._connectionDialogService.openDialogAndWait(this._connectionManagementService,
|
||||||
{
|
{
|
||||||
connectionType: 1,
|
connectionType: ConnectionType.temporary,
|
||||||
providers: this.model.getApplicableConnectionProviderIds(this.model.clientSession.kernel.name)
|
providers: this.model.getApplicableConnectionProviderIds(this.model.clientSession.kernel.name)
|
||||||
},
|
},
|
||||||
useProfile ? this.model.connectionProfile : undefined);
|
useProfile ? this.model.connectionProfile : undefined);
|
||||||
|
|||||||
Reference in New Issue
Block a user