359
360
async writeLocalGlobalState({ added, removed, updated }: { added: IStringDictionary<IStorageValue>; updated: IStringDictionary<IStorageValue>; removed: string[] }, profile: IUserDataProfile): Promise<void> {
361
>
const syncResourceLogLabel = getSyncResourceLogLabel(SyncResource.GlobalState, profile);
globalStateSync.ts
362
>
const argv: IStringDictionary<any> = {};
363
>
const updatedProfileStorage = new Map<string, string | undefined>();
364
>
const updatedSharedStorage = profile.isDefault ? new Map<string, string | undefined>() : undefined;
365
>
const storageData = await this.userDataProfileStorageService.readStorageData(profile);
366
>
const handleUpdatedStorage = (keys: string[], storage?: IStringDictionary<IStorageValue>): void => {
367
>
for (const key of keys) {
368
>
if (key.startsWith(argvStoragePrefx)) {
369
argv[key.substring(argvStoragePrefx.length)] = storage ? storage[key].value : undefined;
370
continue;