Skip to content

Commit df679c7

Browse files
authored
Pick up better fix for event looping (#1279)
1 parent 80ea045 commit df679c7

File tree

3 files changed

+19
-19
lines changed

3 files changed

+19
-19
lines changed

package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -944,7 +944,7 @@
944944
"dependencies": {
945945
"@azure/arm-resources": "^5.2.0",
946946
"@azure/arm-resources-profile-2020-09-01-hybrid": "^2.1.0",
947-
"@microsoft/vscode-azext-azureauth": "^5.1.0",
947+
"@microsoft/vscode-azext-azureauth": "^5.1.1",
948948
"@microsoft/vscode-azext-azureutils": "^4.0.0",
949949
"@microsoft/vscode-azext-utils": "^4.0.0",
950950
"buffer": "^6.0.3",

src/tree/ResourceTreeDataProviderBase.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -55,20 +55,20 @@ export abstract class ResourceTreeDataProviderBase extends vscode.Disposable imp
5555
} else {
5656
if (!this.subscriptionProvider) {
5757
this.subscriptionProvider = await ext.subscriptionProviderFactory();
58-
}
5958

60-
if (!inCloudShell()) {
61-
// Only outside of Cloud Shell will we monitor for ongoing session changes
62-
// Inside we must avoid due to https://github.com/microsoft/vscode-dev/issues/1334
63-
const one = this.subscriptionProvider.onDidSignIn(() => {
64-
this.notifyTreeDataChanged();
65-
});
59+
if (!inCloudShell()) {
60+
// Only outside of Cloud Shell will we monitor for ongoing session changes
61+
// Inside we must avoid due to https://github.com/microsoft/vscode-dev/issues/1334
62+
const one = this.subscriptionProvider.onDidSignIn(() => {
63+
this.notifyTreeDataChanged();
64+
});
6665

67-
const two = this.subscriptionProvider.onDidSignOut(() => {
68-
this.notifyTreeDataChanged();
69-
});
66+
const two = this.subscriptionProvider.onDidSignOut(() => {
67+
this.notifyTreeDataChanged();
68+
});
7069

71-
this.statusSubscription = vscode.Disposable.from(one, two);
70+
this.statusSubscription = vscode.Disposable.from(one, two);
71+
}
7272
}
7373

7474
return this.subscriptionProvider;

0 commit comments

Comments
 (0)