Skip to content

Commit

Permalink
Ensure Install & Restart sets locale (microsoft#170302)
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerLeonhardt authored Dec 30, 2022
1 parent 741531e commit 15605b7
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,11 @@ export class LocalizationWorkbenchContribution extends Disposable implements IWo

const installAndRestartAction = {
label: translations['installAndRestart'],
run: () => {
run: async () => {
logUserReaction('installAndRestart');
this.installExtension(extensionToInstall!).then(() => this.hostService.restart());
await this.installExtension(extensionToInstall!);
await this.jsonEditingService.write(this.environmentService.argvResource, [{ path: ['locale'], value: locale }], true);
await this.hostService.restart();
}
};

Expand Down

0 comments on commit 15605b7

Please sign in to comment.