* Install an extension by ID to the instance's temporary extension * directory.
(id: string)
| 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. |