From 955ab93efc3f488127d16673b89f3900f75c2007 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20K=C4=99ska?= Date: Sun, 8 Jun 2025 15:16:35 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20Codebase=20Indexing=20sti?= =?UTF-8?q?ll=20not=20work?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/indexing/CodebaseIndexer.ts | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/core/indexing/CodebaseIndexer.ts b/core/indexing/CodebaseIndexer.ts index 719c95aec..6c68d772d 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,10 +548,10 @@ export class CodebaseIndexer { // New methods using messenger directly - private async updateProgress(update: IndexingProgressUpdate) { + private updateProgress(update: IndexingProgressUpdate) { this.codebaseIndexingState = update; if (this.messenger) { - await this.messenger.request("indexProgress", update); + 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); @@ -634,7 +633,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 @@ -644,7 +643,7 @@ export class CodebaseIndexer { desc: e.message, }; - await this.updateProgress(updateToSend); + this.updateProgress(updateToSend); void this.sendIndexingErrorTelemetry(updateToSend); }