mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-23 01:25:38 -05:00
Fix access token refresh design (ADS only) (#21206)
This commit is contained in:
@@ -48,6 +48,7 @@ export class RefreshAction extends Action {
|
||||
if (this.element instanceof ConnectionProfile) {
|
||||
let connection: ConnectionProfile = this.element;
|
||||
if (this._connectionManagementService.isConnected(undefined, connection)) {
|
||||
await this._connectionManagementService.refreshAzureAccountTokenIfNecessary(connection);
|
||||
treeNode = this._objectExplorerService.getObjectExplorerNode(connection);
|
||||
if (treeNode === undefined) {
|
||||
await this._objectExplorerService.updateObjectExplorerNodes(connection.toIConnectionProfile());
|
||||
@@ -55,6 +56,8 @@ export class RefreshAction extends Action {
|
||||
}
|
||||
}
|
||||
} else if (this.element instanceof TreeNode) {
|
||||
let connection: ConnectionProfile = this.element.getConnectionProfile();
|
||||
this._connectionManagementService.refreshAzureAccountTokenIfNecessary(connection);
|
||||
treeNode = this.element;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user