mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-25 01:25:36 -05:00
Fixed Kusto change connections for previous notebooks (#12207)
* fix connection dialog for change connection on notebook * Better way to show all connections for providers * minor change
This commit is contained in:
@@ -455,10 +455,15 @@ export class AttachToDropdown extends SelectBox {
|
||||
**/
|
||||
public async openConnectionDialog(useProfile: boolean = false): Promise<boolean> {
|
||||
try {
|
||||
// Get all providers to show all available connections in connection dialog
|
||||
let providers = this.model.getApplicableConnectionProviderIds(this.model.clientSession.kernel.name);
|
||||
for (let alias of this.model.kernelAliases) {
|
||||
providers = providers.concat(this.model.getApplicableConnectionProviderIds(alias));
|
||||
}
|
||||
let connection = await this._connectionDialogService.openDialogAndWait(this._connectionManagementService,
|
||||
{
|
||||
connectionType: ConnectionType.temporary,
|
||||
providers: this.model.getApplicableConnectionProviderIds(this.model.clientSession.kernel.name)
|
||||
providers: providers
|
||||
},
|
||||
useProfile ? this.model.connectionProfile : undefined);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user