src/vs/workbench/contrib/terminal/common/environmentVariableShared.ts/serializeEnvironmentVariableCollections
export function serializeEnvironmentVariableCollections(collections: ReadonlyMap<string, IEnvironmentVariableCollection>): ISerializableEnvironmentVariableCollections {
	return Array.from(collections.entries()).map(e => {
		return [e[0], serializeEnvironmentVariableCollection(e[1].map)];
	});
}