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

Method installExtension

test/e2e/models/CodeServer.ts:583–588  ·  view source on GitHub ↗

* Install an extension by ID to the instance's temporary extension * directory.

(id: string)

Source from the content-addressed store, hash-verified

581 * directory.
582 */
583 async installExtension(id: string): Promise<void> {
584 const dir = path.join(await this.workspaceDir, "extensions")
585 await util.promisify(cp.exec)(`node . --install-extension ${id} --extensions-dir ${dir}`, {
586 cwd: path.join(__dirname, "../../.."),
587 })
588 }
589
590 /**
591 * Wait for state to be flushed to the database.

Callers 1

github.test.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected