diff --git a/scripts/dev-vscode.mjs b/scripts/dev-vscode.mjs index ac5234f6..e5cb25b8 100644 --- a/scripts/dev-vscode.mjs +++ b/scripts/dev-vscode.mjs @@ -9,7 +9,7 @@ const __filename = fileURLToPath(import.meta.url); const __dirname = path.dirname(__filename); const repoRoot = path.resolve(__dirname, '..'); const extensionPath = path.join(repoRoot, 'packages', 'vscode'); -const useDetachedChildren = process.platform === 'darwin'; +const useDetachedChildren = process.platform === 'darwin' || process.platform === 'linux'; const codeBin = process.env.OPENCHAMBER_VSCODE_BIN || 'code'; const workspaceArg = process.argv[2] || process.env.OPENCHAMBER_VSCODE_DEV_WORKSPACE || repoRoot; diff --git a/scripts/dev-web-full.mjs b/scripts/dev-web-full.mjs index aa884f12..7f8bc635 100644 --- a/scripts/dev-web-full.mjs +++ b/scripts/dev-web-full.mjs @@ -6,7 +6,7 @@ import { fileURLToPath } from 'node:url'; const __filename = fileURLToPath(import.meta.url); const __dirname = path.dirname(__filename); const repoRoot = path.resolve(__dirname, '..'); -const useDetachedChildren = process.platform === 'darwin'; +const useDetachedChildren = process.platform === 'darwin' || process.platform === 'linux'; function run(label, command, args, options = {}) { const child = spawn(command, args, { diff --git a/scripts/dev-web-hmr.mjs b/scripts/dev-web-hmr.mjs index 75a33759..cf2463c7 100644 --- a/scripts/dev-web-hmr.mjs +++ b/scripts/dev-web-hmr.mjs @@ -8,7 +8,7 @@ import { fileURLToPath } from 'node:url'; const __filename = fileURLToPath(import.meta.url); const __dirname = path.dirname(__filename); const repoRoot = path.resolve(__dirname, '..'); -const useDetachedChildren = process.platform === 'darwin'; +const useDetachedChildren = process.platform === 'darwin' || process.platform === 'linux'; const webRoot = path.join(repoRoot, 'packages/web'); const quoteWindowsCommandArg = (value) => `"${String(value).replace(/"/g, '""')}"`;