Skip to content

Commit ff51947

Browse files
authored
Fix launching Docker shell or terminal on Windows (#1138)
1 parent 68ecc09 commit ff51947

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ export async function terminalWithDocker(): Promise<vscode.Terminal> {
508508
}
509509
terminal = vscode.window.createTerminal(
510510
terminalName,
511-
exe,
511+
`${exe}${process.platform == "win32" ? ".exe" : ""}`,
512512
argsArr.concat([
513513
"-f",
514514
file,
@@ -543,7 +543,7 @@ export async function shellWithDocker(): Promise<vscode.Terminal> {
543543
}
544544
terminal = vscode.window.createTerminal(
545545
terminalName,
546-
exe,
546+
`${exe}${process.platform == "win32" ? ".exe" : ""}`,
547547
argsArr.concat(["-f", file, "exec", service, "/bin/bash"])
548548
);
549549
terminals.push(terminal);

0 commit comments

Comments
 (0)