Skip to content

Commit 11fc940

Browse files
committed
Clarify.
1 parent 9790a22 commit 11fc940

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ci/dev/watch.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ class Watcher {
3131
this.webServer.kill()
3232
}
3333

34-
this.webServer = fork(path.join(this.rootPath, "out/node/entry.js"), process.argv.slice(2))
34+
// Pass CLI args, save for `node` and the initial script name.
35+
const args = process.argv.slice(2)
36+
this.webServer = fork(path.join(this.rootPath, "out/node/entry.js"), args)
3537
const { pid } = this.webServer
3638

3739
this.webServer.on("exit", () => console.log("[Code Server]", `Web process ${pid} exited`))

0 commit comments

Comments
 (0)