(options, toolPath)
| 20430 | return []; |
| 20431 | } |
| 20432 | if (tool.includes(path2.sep)) { |
| 20433 | return []; |
| 20434 | } |
| 20435 | const directories = []; |
| 20436 | if (process.env.PATH) { |
| 20437 | for (const p of process.env.PATH.split(path2.delimiter)) { |
| 20438 | if (p) { |
| 20439 | directories.push(p); |
| 20440 | } |
| 20441 | } |
| 20442 | } |
| 20443 | const matches = []; |
| 20444 | for (const directory of directories) { |
| 20445 | const filePath = yield tryGetExecutablePath(path2.join(directory, tool), extensions); |
| 20446 | if (filePath) { |
| 20447 | matches.push(filePath); |
| 20448 | } |
| 20449 | } |
| 20450 | return matches; |
| 20451 | }); |
| 20452 | } |
| 20453 |
nothing calls this directly
no outgoing calls
no test coverage detected