@@ -790,7 +790,7 @@ export interface Client {
790790 getShowConfigureIntelliSenseButton ( ) : boolean ;
791791 setShowConfigureIntelliSenseButton ( show : boolean ) : void ;
792792 addTrustedCompiler ( path : string ) : Promise < void > ;
793- getIncludes ( maxDepth : number ) : Promise < GetIncludesResult > ;
793+ getIncludes ( maxDepth : number , token : vscode . CancellationToken ) : Promise < GetIncludesResult > ;
794794 getChatContext ( token : vscode . CancellationToken ) : Promise < ChatContextResult > ;
795795}
796796
@@ -2206,10 +2206,10 @@ export class DefaultClient implements Client {
22062206 await this . languageClient . sendNotification ( DidOpenNotification , params ) ;
22072207 }
22082208
2209- public async getIncludes ( maxDepth : number ) : Promise < GetIncludesResult > {
2209+ public async getIncludes ( maxDepth : number , token : vscode . CancellationToken ) : Promise < GetIncludesResult > {
22102210 const params : GetIncludesParams = { maxDepth : maxDepth } ;
22112211 await this . ready ;
2212- return this . languageClient . sendRequest ( IncludesRequest , params ) ;
2212+ return this . languageClient . sendRequest ( IncludesRequest , params , token ) ;
22132213 }
22142214
22152215 public async getChatContext ( token : vscode . CancellationToken ) : Promise < ChatContextResult > {
@@ -4110,6 +4110,6 @@ class NullClient implements Client {
41104110 getShowConfigureIntelliSenseButton ( ) : boolean { return false ; }
41114111 setShowConfigureIntelliSenseButton ( show : boolean ) : void { }
41124112 addTrustedCompiler ( path : string ) : Promise < void > { return Promise . resolve ( ) ; }
4113- getIncludes ( ) : Promise < GetIncludesResult > { return Promise . resolve ( { } as GetIncludesResult ) ; }
4113+ getIncludes ( maxDepth : number , token : vscode . CancellationToken ) : Promise < GetIncludesResult > { return Promise . resolve ( { } as GetIncludesResult ) ; }
41144114 getChatContext ( token : vscode . CancellationToken ) : Promise < ChatContextResult > { return Promise . resolve ( { } as ChatContextResult ) ; }
41154115}
0 commit comments