Skip to content

Commit 955ab93

Browse files
committed
fix: 🐛 Codebase Indexing still not work
1 parent dac9009 commit 955ab93

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

core/indexing/CodebaseIndexer.ts

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import * as fs from "fs/promises";
22

33
import { ConfigHandler } from "../config/ConfigHandler.js";
4-
import { IContinueServerClient } from "../continueServer/interface.js";
54
import { IDE, IndexingProgressUpdate, IndexTag } from "../index.js";
65
import type { FromCoreProtocol, ToCoreProtocol } from "../protocol";
76
import type { IMessenger } from "../protocol/messenger";
@@ -549,10 +548,10 @@ export class CodebaseIndexer {
549548

550549
// New methods using messenger directly
551550

552-
private async updateProgress(update: IndexingProgressUpdate) {
551+
private updateProgress(update: IndexingProgressUpdate) {
553552
this.codebaseIndexingState = update;
554553
if (this.messenger) {
555-
await this.messenger.request("indexProgress", update);
554+
void this.messenger.request("indexProgress", update);
556555
}
557556
}
558557

@@ -582,7 +581,7 @@ export class CodebaseIndexer {
582581
paths,
583582
this.indexingCancellationController.signal,
584583
)) {
585-
await this.updateProgress(update);
584+
this.updateProgress(update);
586585

587586
if (update.status === "failed") {
588587
await this.sendIndexingErrorTelemetry(update);
@@ -613,7 +612,7 @@ export class CodebaseIndexer {
613612
this.indexingCancellationController = new AbortController();
614613
try {
615614
for await (const update of this.refreshFiles(files)) {
616-
await this.updateProgress(update);
615+
this.updateProgress(update);
617616

618617
if (update.status === "failed") {
619618
await this.sendIndexingErrorTelemetry(update);
@@ -634,7 +633,7 @@ export class CodebaseIndexer {
634633
public async handleIndexingError(e: any) {
635634
if (e instanceof LLMError && this.messenger) {
636635
// Need to report this specific error to the IDE for special handling
637-
await this.messenger.request("reportError", e);
636+
void this.messenger.request("reportError", e);
638637
}
639638

640639
// broadcast indexing error
@@ -644,7 +643,7 @@ export class CodebaseIndexer {
644643
desc: e.message,
645644
};
646645

647-
await this.updateProgress(updateToSend);
646+
this.updateProgress(updateToSend);
648647
void this.sendIndexingErrorTelemetry(updateToSend);
649648
}
650649

0 commit comments

Comments
 (0)