(e: any)
| 801 | } |
| 802 | |
| 803 | public async handleIndexingError(e: any) { |
| 804 | if (e instanceof LLMError && this.messenger) { |
| 805 | // Need to report this specific error to the IDE for special handling |
| 806 | void this.messenger.request("reportError", e); |
| 807 | } |
| 808 | |
| 809 | // broadcast indexing error |
| 810 | const updateToSend: IndexingProgressUpdate = { |
| 811 | progress: 0, |
| 812 | status: "failed", |
| 813 | desc: e.message, |
| 814 | }; |
| 815 | |
| 816 | this.updateProgress(updateToSend); |
| 817 | void this.sendIndexingErrorTelemetry(updateToSend); |
| 818 | } |
| 819 | |
| 820 | public get currentIndexingState(): IndexingProgressUpdate { |
| 821 | return this.codebaseIndexingState; |
no test coverage detected