@@ -24,7 +24,7 @@ describe('copilotProviders Tests', () => {
2424 let getClientsStub : sinon . SinonStub ;
2525 let activeClientStub : sinon . SinonStubbedInstance < DefaultClient > ;
2626 let vscodeGetExtensionsStub : sinon . SinonStub ;
27- let callbackPromise : Promise < { entries : vscode . Uri [ ] ; traits ?: CopilotTrait [ ] } > | undefined ;
27+ let callbackPromise : Promise < { entries : vscode . Uri [ ] ; traits ?: CopilotTrait [ ] } | undefined > | undefined ;
2828 let vscodeExtension : vscode . Extension < unknown > ;
2929 let telemetryStub : sinon . SinonStub ;
3030
@@ -52,7 +52,7 @@ describe('copilotProviders Tests', () => {
5252 uri : vscode . Uri ,
5353 context : { flags : Record < string , unknown > } ,
5454 cancellationToken : vscode . CancellationToken
55- ) => Promise < { entries : vscode . Uri [ ] ; traits ?: CopilotTrait [ ] } >
55+ ) => Promise < { entries : vscode . Uri [ ] ; traits ?: CopilotTrait [ ] } | undefined >
5656 ) : vscode . Disposable & { [ Symbol . dispose ] ( ) : void } {
5757 return {
5858 dispose : ( ) => { } ,
@@ -88,13 +88,13 @@ describe('copilotProviders Tests', () => {
8888 } ) ;
8989
9090 const arrange = ( { vscodeExtension, getIncludeFiles, projectContext, rootUri, flags } :
91- { vscodeExtension ?: vscode . Extension < unknown > ; getIncludeFiles ?: GetIncludesResult ; projectContext ?: ProjectContext ; rootUri ?: vscode . Uri ; flags ?: Record < string , unknown > } =
92- { vscodeExtension : undefined , getIncludeFiles : undefined , projectContext : undefined , rootUri : undefined , flags : { } }
91+ { vscodeExtension ?: vscode . Extension < unknown > ; getIncludeFiles ?: GetIncludesResult ; projectContext ?: ProjectContext ; rootUri ?: vscode . Uri ; flags ?: Record < string , unknown > } =
92+ { vscodeExtension : undefined , getIncludeFiles : undefined , projectContext : undefined , rootUri : undefined , flags : { } }
9393 ) => {
9494 activeClientStub . getIncludes . resolves ( getIncludeFiles ) ;
9595 sinon . stub ( lmTool , 'getProjectContext' ) . resolves ( projectContext ) ;
9696 sinon . stub ( activeClientStub , 'RootUri' ) . get ( ( ) => rootUri ) ;
97- mockCopilotApi . registerRelatedFilesProvider . callsFake ( ( _providerId : { extensionId : string ; languageId : string } , callback : ( uri : vscode . Uri , context : { flags : Record < string , unknown > } , cancellationToken : vscode . CancellationToken ) => Promise < { entries : vscode . Uri [ ] ; traits ?: CopilotTrait [ ] } > ) => {
97+ mockCopilotApi . registerRelatedFilesProvider . callsFake ( ( _providerId : { extensionId : string ; languageId : string } , callback : ( uri : vscode . Uri , context : { flags : Record < string , unknown > } , cancellationToken : vscode . CancellationToken ) => Promise < { entries : vscode . Uri [ ] ; traits ?: CopilotTrait [ ] } | undefined > ) => {
9898 if ( _providerId . languageId === 'cpp' ) {
9999 const tokenSource = new vscode . CancellationTokenSource ( ) ;
100100 try {
0 commit comments