Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delay loading of Azure Account extension #552

Merged
merged 2 commits into from
Oct 17, 2018

Conversation

StephenWeatherford
Copy link
Contributor

@StephenWeatherford StephenWeatherford commented Oct 15, 2018

Delays loading azure account extension until after activation

Part of #535

@StephenWeatherford StephenWeatherford requested a review from a team October 15, 2018 22:20

ctx.subscriptions.push(vscode.debug.registerDebugConfigurationProvider('docker', new DockerDebugConfigProvider()));
await consolidateDefaultRegistrySettings();
activateLanguageClient(ctx);

// Start loading the Azure account after we're completely done activating.
setTimeout(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's with the use of setTimeout? It feels like you just need to call this without an await:

AzureUtilityManager.getInstance().tryGetAzureAccount()

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm just being overly certainly that it doesn't start until we're completely out of our code.

@StephenWeatherford StephenWeatherford merged commit d00f39a into master Oct 17, 2018
@StephenWeatherford StephenWeatherford deleted the saw/delay-account-load branch October 17, 2018 01:28
@microsoft microsoft locked and limited conversation to collaborators Oct 27, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants