MCPcopy Index your code
hub / github.com/coder/code-server / run

Method run

test/e2e/models/CodeServer.ts:208–221  ·  view source on GitHub ↗

* Execute a short-lived command.

(args: string[])

Source from the content-addressed store, hash-verified

206 * Execute a short-lived command.
207 */
208 async run(args: string[]): Promise<void> {
209 args = await this.argsWithDefaults(args)
210 this.logger.debug("executing `node " + args.join(" ") + "`")
211 await util.promisify(cp.exec)("node " + args.join(" "), {
212 cwd: path.join(__dirname, "../../.."),
213 env: {
214 ...process.env,
215 ...this.env,
216 // Prevent code-server from using the existing instance when running
217 // the e2e tests from an integrated terminal.
218 VSCODE_IPC_HOOK_CLI: "",
219 },
220 })
221 }
222
223 /**
224 * Combine arguments with defaults.

Callers 1

openFileExternallyMethod · 0.80

Calls 1

argsWithDefaultsMethod · 0.95

Tested by

no test coverage detected