1
1
import * as fs from "fs/promises" ;
2
2
3
3
import { ConfigHandler } from "../config/ConfigHandler.js" ;
4
- import { IContinueServerClient } from "../continueServer/interface.js" ;
5
4
import { IDE , IndexingProgressUpdate , IndexTag } from "../index.js" ;
6
5
import type { FromCoreProtocol , ToCoreProtocol } from "../protocol" ;
7
6
import type { IMessenger } from "../protocol/messenger" ;
@@ -549,10 +548,10 @@ export class CodebaseIndexer {
549
548
550
549
// New methods using messenger directly
551
550
552
- private async updateProgress ( update : IndexingProgressUpdate ) {
551
+ private updateProgress ( update : IndexingProgressUpdate ) {
553
552
this . codebaseIndexingState = update ;
554
553
if ( this . messenger ) {
555
- await this . messenger . request ( "indexProgress" , update ) ;
554
+ void this . messenger . request ( "indexProgress" , update ) ;
556
555
}
557
556
}
558
557
@@ -582,7 +581,7 @@ export class CodebaseIndexer {
582
581
paths ,
583
582
this . indexingCancellationController . signal ,
584
583
) ) {
585
- await this . updateProgress ( update ) ;
584
+ this . updateProgress ( update ) ;
586
585
587
586
if ( update . status === "failed" ) {
588
587
await this . sendIndexingErrorTelemetry ( update ) ;
@@ -613,7 +612,7 @@ export class CodebaseIndexer {
613
612
this . indexingCancellationController = new AbortController ( ) ;
614
613
try {
615
614
for await ( const update of this . refreshFiles ( files ) ) {
616
- await this . updateProgress ( update ) ;
615
+ this . updateProgress ( update ) ;
617
616
618
617
if ( update . status === "failed" ) {
619
618
await this . sendIndexingErrorTelemetry ( update ) ;
@@ -634,7 +633,7 @@ export class CodebaseIndexer {
634
633
public async handleIndexingError ( e : any ) {
635
634
if ( e instanceof LLMError && this . messenger ) {
636
635
// 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 ) ;
638
637
}
639
638
640
639
// broadcast indexing error
@@ -644,7 +643,7 @@ export class CodebaseIndexer {
644
643
desc : e . message ,
645
644
} ;
646
645
647
- await this . updateProgress ( updateToSend ) ;
646
+ this . updateProgress ( updateToSend ) ;
648
647
void this . sendIndexingErrorTelemetry ( updateToSend ) ;
649
648
}
650
649
0 commit comments