diff --git a/src/vs/workbench/contrib/chat/browser/widget/chatListRenderer.ts b/src/vs/workbench/contrib/chat/browser/widget/chatListRenderer.ts index 6e6c928e69c..be0d5847e3c 100644 --- a/src/vs/workbench/contrib/chat/browser/widget/chatListRenderer.ts +++ b/src/vs/workbench/contrib/chat/browser/widget/chatListRenderer.ts @@ -1969,10 +1969,10 @@ export class ChatListItemRenderer extends Disposable implements ITreeRenderer { + const createToolPart = (): { domNode: HTMLElement; part: ChatToolInvocationPart } => { lazilyCreatedPart = this.instantiationService.createInstance(ChatToolInvocationPart, toolInvocation, context, this.chatContentMarkdownRenderer, this._contentReferencesListPool, this._toolEditorPool, () => this._currentLayoutWidth.get(), this._toolInvocationCodeBlockCollection, this._announcedToolProgressKeys, codeBlockStartIndex); this.handleRenderedCodeblocks(context.element, lazilyCreatedPart, codeBlockStartIndex); - return { domNode: lazilyCreatedPart.domNode, disposable: lazilyCreatedPart, part: lazilyCreatedPart }; + return { domNode: lazilyCreatedPart.domNode, part: lazilyCreatedPart }; }; // handling for when we want to put tool invocations inside a thinking part @@ -2028,7 +2028,7 @@ export class ChatListItemRenderer extends Disposable implements ITreeRenderer ChatToolInvocationPart | undefined, - createToolPart: () => { domNode: HTMLElement; disposable: ChatToolInvocationPart; part: ChatToolInvocationPart }, + createToolPart: () => { domNode: HTMLElement; part: ChatToolInvocationPart }, context: IChatContentPartRenderContext, templateData: IChatListItemTemplate ): void {