diff --git a/core/indexing/CodebaseIndexer.ts b/core/indexing/CodebaseIndexer.ts index 0a0432ccf..86933f8bd 100644 --- a/core/indexing/CodebaseIndexer.ts +++ b/core/indexing/CodebaseIndexer.ts @@ -1,7 +1,6 @@ import * as fs from "fs/promises"; import { ConfigHandler } from "../config/ConfigHandler.js"; -import { IContinueServerClient } from "../continueServer/interface.js"; import { IDE, IndexingProgressUpdate, IndexTag } from "../index.js"; import type { FromCoreProtocol, ToCoreProtocol } from "../protocol"; import type { IMessenger } from "../protocol/messenger"; @@ -549,7 +548,7 @@ export class CodebaseIndexer { // New methods using messenger directly - private async updateProgress(update: IndexingProgressUpdate) { + private updateProgress(update: IndexingProgressUpdate) { this.codebaseIndexingState = update; if (this.messenger) { void this.messenger.request("indexProgress", update); @@ -582,7 +581,7 @@ export class CodebaseIndexer { paths, this.indexingCancellationController.signal, )) { - await this.updateProgress(update); + this.updateProgress(update); if (update.status === "failed") { await this.sendIndexingErrorTelemetry(update); @@ -613,7 +612,7 @@ export class CodebaseIndexer { this.indexingCancellationController = new AbortController(); try { for await (const update of this.refreshFiles(files)) { - await this.updateProgress(update); + this.updateProgress(update); if (update.status === "failed") { await this.sendIndexingErrorTelemetry(update); @@ -636,7 +635,7 @@ export class CodebaseIndexer { public async handleIndexingError(e: any) { if (e instanceof LLMError && this.messenger) { // Need to report this specific error to the IDE for special handling - await this.messenger.request("reportError", e); + void this.messenger.request("reportError", e); } // broadcast indexing error @@ -646,7 +645,7 @@ export class CodebaseIndexer { desc: e.message, }; - await this.updateProgress(updateToSend); + this.updateProgress(updateToSend); void this.sendIndexingErrorTelemetry(updateToSend); }