Merge pull request #6032 from owl-app/fix-codebase-indexing

fix: 🐛 Codebase Indexing still not work
This commit is contained in:
Patrick Erichsen 2025-06-09 14:48:43 -07:00 • committed by GitHub
commit 7140451aa3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);
}