Skip to content

Commit 58e4a65

Browse files
committed
logs for shim
1 parent 7a3e62f commit 58e4a65

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

bin/package-manager-completion.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,23 @@ function runCompletionCommand(
3232

3333
// In a PowerShell host, go through powershell.exe so .ps1 shims work.
3434
if (isPowerShellEnv) {
35+
if (process.env.TAB_DEBUG) {
36+
console.error('[DEBUG] runCompletionCommand via powershell:', {
37+
command,
38+
args,
39+
});
40+
}
3541
return runCompletionViaPowerShell(command, args);
3642
}
3743

3844
const targetCommand = preferCmdShim(command);
45+
if (process.env.TAB_DEBUG) {
46+
console.error('[DEBUG] runCompletionCommand via cmd path:', {
47+
command,
48+
targetCommand,
49+
args,
50+
});
51+
}
3952
const result = spawnSync(targetCommand, args, completionSpawnOptions);
4053

4154
return (result.stdout ?? '').trim();

0 commit comments

Comments
 (0)