()
| 308 | } |
| 309 | |
| 310 | private ensureCleanState(): void { |
| 311 | if (this.currentRequestCancellation) { |
| 312 | this.currentRequestCancellation.cancel() |
| 313 | this.currentRequestCancellation.dispose() |
| 314 | this.currentRequestCancellation = null |
| 315 | } |
| 316 | } |
| 317 | |
| 318 | private async getClient(): Promise<vscode.LanguageModelChat> { |
| 319 | if (!this.client) { |
no test coverage detected