@@ -267,7 +267,7 @@ export class ToolConfirmationSubPart extends BaseChatToolInvocationSubPart {
267
267
messageSeeMoreObserver . startObserving ( ) ;
268
268
269
269
if ( disclaimer ) {
270
- this . _makeMarkdownPart ( elements . disclaimer , disclaimer , codeBlockRenderOptions , true ) ;
270
+ this . _makeMarkdownPart ( elements . disclaimer , disclaimer , codeBlockRenderOptions ) ;
271
271
} else {
272
272
elements . disclaimer . remove ( ) ;
273
273
}
@@ -315,8 +315,22 @@ export class ToolConfirmationSubPart extends BaseChatToolInvocationSubPart {
315
315
this . domNode = confirmWidget . domNode ;
316
316
}
317
317
318
- private _makeMarkdownPart ( container : HTMLElement , message : string | IMarkdownString , codeBlockRenderOptions : ICodeBlockRenderOptions , isDisclaimer = false ) {
319
- const part = this . _register ( this . instantiationService . createInstance ( ChatMarkdownContentPart , { kind : 'markdownContent' , content : typeof message === 'string' ? ( isDisclaimer ? new MarkdownString ( ) . appendMarkdown ( message ) : new MarkdownString ( ) . appendText ( message ) ) : message } , this . context , this . editorPool , false , this . codeBlockStartIndex , this . renderer , undefined , this . currentWidthDelegate ( ) , this . codeBlockModelCollection , { codeBlockRenderOptions } ) ) ;
318
+ private _makeMarkdownPart ( container : HTMLElement , message : string | IMarkdownString , codeBlockRenderOptions : ICodeBlockRenderOptions ) {
319
+ const part = this . _register ( this . instantiationService . createInstance ( ChatMarkdownContentPart ,
320
+ {
321
+ kind : 'markdownContent' ,
322
+ content : typeof message === 'string' ? new MarkdownString ( ) . appendMarkdown ( message ) : message
323
+ } ,
324
+ this . context ,
325
+ this . editorPool ,
326
+ false ,
327
+ this . codeBlockStartIndex ,
328
+ this . renderer ,
329
+ undefined ,
330
+ this . currentWidthDelegate ( ) ,
331
+ this . codeBlockModelCollection ,
332
+ { codeBlockRenderOptions }
333
+ ) ) ;
320
334
renderFileWidgets ( part . domNode , this . instantiationService , this . chatMarkdownAnchorService , this . _store ) ;
321
335
container . append ( part . domNode ) ;
322
336
0 commit comments