@@ -527,6 +527,7 @@ interface DidChangeActiveEditorParams {
527
527
}
528
528
529
529
interface GetIncludesParams {
530
+ fileUri : string ;
530
531
maxDepth : number ;
531
532
}
532
533
@@ -827,7 +828,7 @@ export interface Client {
827
828
setShowConfigureIntelliSenseButton ( show : boolean ) : void ;
828
829
addTrustedCompiler ( path : string ) : Promise < void > ;
829
830
getCopilotHoverProvider ( ) : CopilotHoverProvider | undefined ;
830
- getIncludes ( maxDepth : number ) : Promise < GetIncludesResult > ;
831
+ getIncludes ( uri : vscode . Uri , maxDepth : number ) : Promise < GetIncludesResult > ;
831
832
getChatContext ( uri : vscode . Uri , token : vscode . CancellationToken ) : Promise < ChatContextResult > ;
832
833
getProjectContext ( uri : vscode . Uri ) : Promise < ProjectContextResult > ;
833
834
filesEncodingChanged ( filesEncodingChanged : FilesEncodingChanged ) : void ;
@@ -2291,8 +2292,8 @@ export class DefaultClient implements Client {
2291
2292
* the UI results and always re-requests (no caching).
2292
2293
*/
2293
2294
2294
- public async getIncludes ( maxDepth : number ) : Promise < GetIncludesResult > {
2295
- const params : GetIncludesParams = { maxDepth : maxDepth } ;
2295
+ public async getIncludes ( uri : vscode . Uri , maxDepth : number ) : Promise < GetIncludesResult > {
2296
+ const params : GetIncludesParams = { fileUri : uri . toString ( ) , maxDepth } ;
2296
2297
await this . ready ;
2297
2298
return this . languageClient . sendRequest ( IncludesRequest , params ) ;
2298
2299
}
@@ -4235,7 +4236,7 @@ class NullClient implements Client {
4235
4236
setShowConfigureIntelliSenseButton ( show : boolean ) : void { }
4236
4237
addTrustedCompiler ( path : string ) : Promise < void > { return Promise . resolve ( ) ; }
4237
4238
getCopilotHoverProvider ( ) : CopilotHoverProvider | undefined { return undefined ; }
4238
- getIncludes ( maxDepth : number ) : Promise < GetIncludesResult > { return Promise . resolve ( { } as GetIncludesResult ) ; }
4239
+ getIncludes ( uri : vscode . Uri , maxDepth : number ) : Promise < GetIncludesResult > { return Promise . resolve ( { } as GetIncludesResult ) ; }
4239
4240
getChatContext ( uri : vscode . Uri , token : vscode . CancellationToken ) : Promise < ChatContextResult > { return Promise . resolve ( { } as ChatContextResult ) ; }
4240
4241
getProjectContext ( uri : vscode . Uri ) : Promise < ProjectContextResult > { return Promise . resolve ( { } as ProjectContextResult ) ; }
4241
4242
filesEncodingChanged ( filesEncodingChanged : FilesEncodingChanged ) : void { }
0 commit comments