Skip to content

Commit d4f8a75

Browse files
committed
Disable existing terminal for Windows for now
1 parent dcdc634 commit d4f8a75

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/interceptors/terminal/existing-terminal-interceptor.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ export class ExistingTerminalInterceptor implements Interceptor {
2323
constructor(private config: HtkConfig) { }
2424

2525
isActivable(): Promise<boolean> {
26-
return Promise.resolve(true);
26+
// Not supported on Windows, for now. Doesn't work in cmd or powershell of course (needs bash),
27+
// and doesn't work in git bash/WSL due to path transforms. Fixable, I think, but not easily.
28+
return Promise.resolve(process.platform !== 'win32');
2729
}
2830

2931
isActive(proxyPort: number): boolean {

0 commit comments

Comments
 (0)