mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-22 09:35:37 -05:00
Skip fetching access token when opening context menu in OE (#21557)
This commit is contained in:
@@ -255,8 +255,10 @@ export class ConnectionManagementService extends Disposable implements IConnecti
|
||||
* Load the password for the profile
|
||||
* @param connectionProfile Connection Profile
|
||||
*/
|
||||
public async addSavedPassword(connectionProfile: interfaces.IConnectionProfile): Promise<interfaces.IConnectionProfile> {
|
||||
await this.fillInOrClearToken(connectionProfile);
|
||||
public async addSavedPassword(connectionProfile: interfaces.IConnectionProfile, skipAccessToken: boolean = false): Promise<interfaces.IConnectionProfile> {
|
||||
if (!skipAccessToken) {
|
||||
await this.fillInOrClearToken(connectionProfile);
|
||||
}
|
||||
return this._connectionStore.addSavedPassword(connectionProfile).then(result => result.profile);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user