Fix Docker path quoting and VSCode terminal env

This commit is contained in:
2026-05-03 17:25:16 +09:00
parent aa14ebc447
commit 74715c0546
3 changed files with 7 additions and 2 deletions

5
.vscode/settings.json vendored Normal file
View File

@@ -0,0 +1,5 @@
{
"terminal.integrated.env.windows": {
"PATH": "${env:PATH};C:\\Program Files\\Docker\\Docker\\resources\\bin"
}
}

View File

@@ -13,7 +13,7 @@ async function run(command: string, args: string[], stdio: "ignore" | "inherit"
const child = spawn(command, args, { const child = spawn(command, args, {
stdio: ["ignore", stdio, "inherit"], stdio: ["ignore", stdio, "inherit"],
windowsHide: true, windowsHide: true,
shell: process.platform === "win32", shell: process.platform === "win32" && !path.isAbsolute(command),
}); });
child.on("error", (error) => { child.on("error", (error) => {

View File

@@ -14,7 +14,7 @@ async function run(command: string, args: string[], cwd = process.cwd()): Promis
cwd, cwd,
stdio: "inherit", stdio: "inherit",
windowsHide: true, windowsHide: true,
shell: process.platform === "win32", shell: process.platform === "win32" && !path.isAbsolute(command),
}); });
child.on("error", (error) => { child.on("error", (error) => {