@@ -25,7 +25,7 @@ import { isObject, isUndefinedOrNull } from '../../../../util/vs/base/common/typ
2525import { generateUuid } from '../../../../util/vs/base/common/uuid' ;
2626import { SyncDescriptor } from '../../../../util/vs/platform/instantiation/common/descriptors' ;
2727import { IInstantiationService } from '../../../../util/vs/platform/instantiation/common/instantiation' ;
28- import { ChatLocation , ChatResponseConfirmationPart , LanguageModelTextPart , LanguageModelToolResult } from '../../../../vscodeTypes' ;
28+ import { ChatLocation , ChatResponseConfirmationPart , ChatResponseMarkdownPart , LanguageModelTextPart , LanguageModelToolResult } from '../../../../vscodeTypes' ;
2929import { ToolCallingLoop } from '../../../intents/node/toolCallingLoop' ;
3030import { ToolResultMetadata } from '../../../prompts/node/panel/toolCalling' ;
3131import { createExtensionUnitTestingServices } from '../../../test/node/services' ;
@@ -329,16 +329,14 @@ suite('defaultIntentRequestHandler', () => {
329329 expect ( last ) . toBeInstanceOf ( ChatResponseConfirmationPart ) ;
330330
331331 const request = new TestChatRequest ( ) ;
332- request . acceptedConfirmationData = [ ( last as ChatResponseConfirmationPart ) . data ] ;
332+ request . rejectedConfirmationData = [ ( last as ChatResponseConfirmationPart ) . data ] ;
333333 request . prompt = ( last as ChatResponseConfirmationPart ) . buttons ! [ 1 ] ;
334334 const handler2 = makeHandler ( { request } ) ;
335335 await handler2 . getResult ( ) ;
336336
337- expect ( response . at ( - 1 ) ) . toMatchInlineSnapshot ( `
338- ChatResponseMarkdownPart {
339- "value": MarkdownString {},
340- }
341- ` ) ;
337+ const last2 = response . at ( - 1 ) ;
338+ expect ( last2 ) . toBeInstanceOf ( ChatResponseMarkdownPart ) ;
339+ expect ( ( last2 as ChatResponseMarkdownPart ) . value . value ) . toMatchInlineSnapshot ( `"Let me know if there's anything else I can help with!"` ) ;
342340 } ) ;
343341} ) ;
344342
0 commit comments