| 51 | // A fake bundle launcher that prints a marker + its args, so we can prove the |
| 52 | // shim found and exec'd it (and passed args through). |
| 53 | function writeLauncher(binDir: string): void { |
| 54 | fs.mkdirSync(binDir, { recursive: true }); |
| 55 | const p = path.join(binDir, 'codegraph'); |
| 56 | fs.writeFileSync(p, '#!/bin/sh\necho "FAKE_BUNDLE_RAN args:$*"\n'); |
| 57 | fs.chmodSync(p, 0o755); |
| 58 | } |
| 59 | |
| 60 | // A fake bundle launcher that echoes the threaded host pid, so we can prove the |
| 61 | // shim passed CODEGRAPH_HOST_PPID down to the server (#1185). |