mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-21 01:25:37 -05:00
handle unsupported connection provider (#20577)
* handle unknown connection provider * fix error
This commit is contained in:
@@ -321,6 +321,13 @@ export interface IConnectionManagementService {
|
||||
* @returns array of connections
|
||||
*/
|
||||
getConnections(activeConnectionsOnly?: boolean): ConnectionProfile[];
|
||||
|
||||
/**
|
||||
* Handle the unsupported provider scenario.
|
||||
* @param providerName The provider name.
|
||||
* @returns Promise with a boolean value indicating whether the user has accepted the suggestion.
|
||||
*/
|
||||
handleUnsupportedProvider(providerName: string): Promise<boolean>;
|
||||
}
|
||||
|
||||
export enum RunQueryOnConnectionMode {
|
||||
|
||||
@@ -322,4 +322,8 @@ export class TestConnectionManagementService implements IConnectionManagementSer
|
||||
refreshAzureAccountTokenIfNecessary(uri: string): Promise<boolean> {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
async handleUnsupportedProvider(providerName: string): Promise<boolean> {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user