mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-23 09:35:39 -05:00
make connectiondialog react to provider event (#4544)
* make connectiondialog react to provider event * fix unit test error * code review comments
This commit is contained in:
@@ -102,6 +102,17 @@ export class ConnectionDialogWidget extends Modal {
|
||||
super(localize('connection', 'Connection'), TelemetryKeys.Connection, _partService, telemetryService, clipboardService, _workbenchThemeService, contextKeyService, { hasSpinner: true, hasErrors: true });
|
||||
}
|
||||
|
||||
/**
|
||||
* Update the available connection providers, this is called when new providers are registered
|
||||
* So that the connection type dropdown always has up to date values
|
||||
*/
|
||||
public updateConnectionProviders(providerTypeOptions: string[],
|
||||
providerNameToDisplayNameMap: { [providerDisplayName: string]: string }) {
|
||||
this.providerTypeOptions = providerTypeOptions;
|
||||
this.providerNameToDisplayNameMap = providerNameToDisplayNameMap;
|
||||
this.refresh();
|
||||
}
|
||||
|
||||
public refresh(): void {
|
||||
let filteredProviderTypes = this.providerTypeOptions;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user