@@ -527,6 +527,7 @@ interface DidChangeActiveEditorParams {
527527}
528528
529529interface GetIncludesParams {
530+ fileUri : string ;
530531 maxDepth : number ;
531532}
532533
@@ -827,7 +828,7 @@ export interface Client {
827828 setShowConfigureIntelliSenseButton ( show : boolean ) : void ;
828829 addTrustedCompiler ( path : string ) : Promise < void > ;
829830 getCopilotHoverProvider ( ) : CopilotHoverProvider | undefined ;
830- getIncludes ( maxDepth : number ) : Promise < GetIncludesResult > ;
831+ getIncludes ( uri : vscode . Uri , maxDepth : number ) : Promise < GetIncludesResult > ;
831832 getChatContext ( uri : vscode . Uri , token : vscode . CancellationToken ) : Promise < ChatContextResult > ;
832833 getProjectContext ( uri : vscode . Uri ) : Promise < ProjectContextResult > ;
833834 filesEncodingChanged ( filesEncodingChanged : FilesEncodingChanged ) : void ;
@@ -2291,8 +2292,8 @@ export class DefaultClient implements Client {
22912292 * the UI results and always re-requests (no caching).
22922293 */
22932294
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 } ;
22962297 await this . ready ;
22972298 return this . languageClient . sendRequest ( IncludesRequest , params ) ;
22982299 }
@@ -4235,7 +4236,7 @@ class NullClient implements Client {
42354236 setShowConfigureIntelliSenseButton ( show : boolean ) : void { }
42364237 addTrustedCompiler ( path : string ) : Promise < void > { return Promise . resolve ( ) ; }
42374238 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 ) ; }
42394240 getChatContext ( uri : vscode . Uri , token : vscode . CancellationToken ) : Promise < ChatContextResult > { return Promise . resolve ( { } as ChatContextResult ) ; }
42404241 getProjectContext ( uri : vscode . Uri ) : Promise < ProjectContextResult > { return Promise . resolve ( { } as ProjectContextResult ) ; }
42414242 filesEncodingChanged ( filesEncodingChanged : FilesEncodingChanged ) : void { }
0 commit comments