(uri: URI, cliHost: CLIHost)
| 58 | } |
| 59 | |
| 60 | export async function uriToWSLFsPath(uri: URI, cliHost: CLIHost): Promise<string> { |
| 61 | if (uri.scheme === 'file' && cliHost.type === 'wsl') { |
| 62 | // convert local path (e.g. repository-container Dockerfile) to WSL path |
| 63 | const { stdout } = await runCommandNoPty({ |
| 64 | exec: cliHost.exec, |
| 65 | cmd: 'wslpath', |
| 66 | args: ['-u', uri.fsPath], |
| 67 | output: nullLog, |
| 68 | }); |
| 69 | const cliHostPath = stdout.toString().trim(); |
| 70 | return cliHostPath; |
| 71 | } |
| 72 | return uriToFsPath(uri, cliHost.platform); |
| 73 | } |
| 74 | |
| 75 | export async function logUMask(params: DockerResolverParameters): Promise<string | undefined> { |
| 76 | // process.umask() is deprecated: https://nodejs.org/api/process.html#processumask |
no test coverage detected