mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Canye/fix refresh (#19424)
* Bump version of arc and azcli to 1.3.0 * Fixed refresh to do dc config show and endpoint list first, then check the connectionmode * Await calls to refresh indirect and direct * Made sql mi-arc delete also handle direct mode. Made customlocation for sql mi create work again, regex problem. Co-authored-by: Candice Ye <canye@microsoft.com>
This commit is contained in:
@@ -39,12 +39,12 @@ export class ControllerTreeNode extends TreeNode {
|
||||
|
||||
public override async getChildren(): Promise<TreeNode[]> {
|
||||
try {
|
||||
await this.model.refresh(false, this.model.info.resourceGroup, this.model.info.namespace);
|
||||
await this.model.refresh(false, this.model.info.namespace);
|
||||
this.updateChildren(this.model.registrations);
|
||||
} catch (err) {
|
||||
vscode.window.showErrorMessage(loc.errorConnectingToController(err));
|
||||
try {
|
||||
await this.model.refresh(false, this.model.info.resourceGroup, this.model.info.namespace);
|
||||
await this.model.refresh(false, this.model.info.namespace);
|
||||
this.updateChildren(this.model.registrations);
|
||||
} catch (err) {
|
||||
if (!(err instanceof UserCancelledError)) {
|
||||
|
||||
Reference in New Issue
Block a user