src/vs/workbench/contrib/terminal/common/environmentVariableShared.ts/serializeEnvironmentVariableCollection
export function serializeEnvironmentVariableCollection(collection: ReadonlyMap<string, IEnvironmentVariableMutator>): ISerializableEnvironmentVariableCollection {
	return [...collection.entries()];
}