42
const serializedPersistedCollections = this._storageService.get(TerminalStorageKeys.EnvironmentVariableCollections, StorageScope.WORKSPACE);
43
if (serializedPersistedCollections) {
44
>
const collectionsJson: ISerializableExtensionEnvironmentVariableCollection[] = JSON.parse(serializedPersistedCollections);
environmentVariableService.ts
45
>
collectionsJson.forEach(c => this.collections.set(c.extensionIdentifier, {
46
>
persistent: true,
47
>
map: deserializeEnvironmentVariableCollection(c.collection),
48
>
descriptionMap: deserializeEnvironmentDescriptionMap(c.description)
49
>
}));
50
>
51
>
// Asynchronously invalidate collections where extensions have been uninstalled, this is
52
>
// async to avoid making all functions on the service synchronous and because extensions
53
>
// being uninstalled is rare.
54
>
this._invalidateExtensionCollections();
55
>
}
56
this.mergedCollection = this._resolveMergedCollection();
57