1
>
/*---------------------------------------------------------------------------------------------
envfile.ts
2
>
* Copyright (c) Microsoft Corporation. All rights reserved.
3
>
* Licensed under the MIT License. See License.txt in the project root for license information.
4
>
*--------------------------------------------------------------------------------------------*/
5
>
6
>
/**
7
>
* Parses a standard .env/.envrc file into a map of the environment variables
8
>
* it defines.
9
>
*
10
>
* todo@connor4312: this can go away (if only used in Node.js targets) and be
11
>
* replaced with `util.parseEnv`. However, currently calling that makes the
12
>
* extension host crash.
13
>
*/
14
>
export function parseEnvFile(src: string) {
15
const result = new Map<string, string>();
16