(list: string[] | null | undefined)
| 520 | } |
| 521 | |
| 522 | export function envListToObj(list: string[] | null | undefined) { |
| 523 | // Handle Env is null (https://github.com/microsoft/vscode-remote-release/issues/2058). |
| 524 | return (list || []).reduce((obj, pair) => { |
| 525 | const i = pair.indexOf('='); |
| 526 | if (i !== -1) { |
| 527 | obj[pair.substring(0, i)] = pair.substring(i + 1); |
| 528 | } |
| 529 | return obj; |
| 530 | }, {} as Record<string, string>); |
| 531 | } |
| 532 | |
| 533 | export async function runInitializeCommand(params: DockerResolverParameters, userCommand: LifecycleCommand | undefined, onDidInput?: Event<string>) { |
| 534 | if (!userCommand) { |
no outgoing calls
no test coverage detected