389
390
if (Object.keys(argv).length) {
391
>
this.logService.trace(`${syncResourceLogLabel}: Updating locale...`);
globalStateSync.ts
392
>
const argvContent = await this.getLocalArgvContent();
393
>
let content = argvContent;
394
>
for (const argvProperty of Object.keys(argv)) {
395
>
content = edit(content, [argvProperty], argv[argvProperty], {});
396
>
}
397
>
if (argvContent !== content) {
398
>
this.logService.trace(`${syncResourceLogLabel}: Updating locale...`);
399
>
await this.fileService.writeFile(this.environmentService.argvResource, VSBuffer.fromString(content));
400
>
this.logService.info(`${syncResourceLogLabel}: Updated locale.`);
401
>
}
402
>
this.logService.info(`${syncResourceLogLabel}: Updated locale`);
403
>
}
404
405
if (updatedProfileStorage.size) {