diff --git a/src/vs/workbench/contrib/localization/electron-sandbox/localization.contribution.ts b/src/vs/workbench/contrib/localization/electron-sandbox/localization.contribution.ts index 9cc0a15f0b53a..6a944aa9b1586 100644 --- a/src/vs/workbench/contrib/localization/electron-sandbox/localization.contribution.ts +++ b/src/vs/workbench/contrib/localization/electron-sandbox/localization.contribution.ts @@ -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(); } };