mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-19 09:35:36 -05:00
Enable SQL Auth Provider support (#21903)
This commit is contained in:
@@ -135,6 +135,12 @@ export interface IConnectionManagementService {
|
||||
*/
|
||||
findExistingConnection(connection: IConnectionProfile, purpose?: 'dashboard' | 'insights' | 'connection'): ConnectionProfile;
|
||||
|
||||
/**
|
||||
* Fixes treeItem payload to consider defaultAuthenticationType and any other user settings.
|
||||
* @param profile Connection profile as received from treeItem.
|
||||
*/
|
||||
fixProfile(profile?: azdata.IConnectionProfile): Promise<azdata.IConnectionProfile>;
|
||||
|
||||
/**
|
||||
* If there's already a connection for given profile and purpose, returns the ownerUri for the connection
|
||||
* otherwise tries to make a connection and returns the owner uri when connection is complete
|
||||
|
||||
@@ -170,6 +170,10 @@ export class TestConnectionManagementService implements IConnectionManagementSer
|
||||
return undefined!;
|
||||
}
|
||||
|
||||
async fixProfile(profile?: IConnectionProfile): Promise<IConnectionProfile> {
|
||||
return profile;
|
||||
}
|
||||
|
||||
connect(connection: IConnectionProfile, uri: string, options?: IConnectionCompletionOptions, callbacks?: IConnectionCallbacks): Promise<IConnectionResult> {
|
||||
return new Promise<IConnectionResult>((resolve, reject) => {
|
||||
resolve({ connected: true, errorMessage: undefined!, errorCode: undefined!, messageDetails: undefined! });
|
||||
|
||||
Reference in New Issue
Block a user