(
path: string,
options?: AddAdditionalDirOptions,
)
| 157 | } |
| 158 | |
| 159 | async addAdditionalDir( |
| 160 | path: string, |
| 161 | options?: AddAdditionalDirOptions, |
| 162 | ): Promise<AddAdditionalDirResult> { |
| 163 | this.ensureOpen(); |
| 164 | const normalized = normalizeRequiredString( |
| 165 | path, |
| 166 | 'Additional directory cannot be empty', |
| 167 | ErrorCodes.REQUEST_INVALID, |
| 168 | ); |
| 169 | const result = await this.rpc.addAdditionalDir({ |
| 170 | id: this.id, |
| 171 | path: normalized, |
| 172 | persist: options?.persist ?? true, |
| 173 | }); |
| 174 | this.summary = { ...this.requireSummary(), additionalDirs: result.additionalDirs }; |
| 175 | return result; |
| 176 | } |
| 177 | |
| 178 | async startBtw(): Promise<string> { |
| 179 | this.ensureOpen(); |
no test coverage detected