adhdev 0.1.11 → 0.1.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +7 -18
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1284,24 +1284,13 @@ async function launchWindows(ide, port, workspace, newWindow) {
|
|
|
1284
1284
|
if (!cli) {
|
|
1285
1285
|
throw new Error(`No CLI command for ${ide.displayName}. Please add it to PATH.`);
|
|
1286
1286
|
}
|
|
1287
|
-
const
|
|
1288
|
-
if (newWindow)
|
|
1289
|
-
if (workspace)
|
|
1290
|
-
const
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
detached: true,
|
|
1295
|
-
stdio: "ignore",
|
|
1296
|
-
windowsHide: true
|
|
1297
|
-
}).unref();
|
|
1298
|
-
} else {
|
|
1299
|
-
(0, import_child_process3.spawn)(cli, args, {
|
|
1300
|
-
detached: true,
|
|
1301
|
-
stdio: "ignore",
|
|
1302
|
-
shell: false
|
|
1303
|
-
}).unref();
|
|
1304
|
-
}
|
|
1287
|
+
const parts = [`"${cli}"`, `--remote-debugging-port=${port}`];
|
|
1288
|
+
if (newWindow) parts.push("--new-window");
|
|
1289
|
+
if (workspace) parts.push(`"${workspace}"`);
|
|
1290
|
+
const fullCmd = parts.join(" ");
|
|
1291
|
+
const { exec: execCmd } = require("child_process");
|
|
1292
|
+
execCmd(fullCmd, { windowsHide: true }, () => {
|
|
1293
|
+
});
|
|
1305
1294
|
}
|
|
1306
1295
|
async function launchLinux(ide, port, workspace, newWindow) {
|
|
1307
1296
|
const cli = ide.cliCommand;
|