Fix create file not properly rendering (#288150)

* Fix create file not properly rendering

* Update src/vs/workbench/contrib/chat/common/model/chatProgressTypes/chatToolInvocation.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Logan Ramos
2026-01-15 19:39:38 +00:00
committed by GitHub
co-authored by Copilot
parent 9a53549070
commit 63be45bc13
@@ -6,6 +6,7 @@
import { encodeBase64 } from '../../../../../../base/common/buffer.js';
import { IMarkdownString } from '../../../../../../base/common/htmlContent.js';
import { IObservable, ISettableObservable, observableValue } from '../../../../../../base/common/observable.js';
import { localize } from '../../../../../../nls.js';
import { ConfirmedReason, IChatExtensionsContent, IChatSubagentToolInvocationData, IChatTodoListContent, IChatToolInputInvocationData, IChatToolInvocation, IChatToolInvocationSerialized, ToolConfirmKind, type IChatTerminalToolInvocationData } from '../../chatService/chatService.js';
import { IPreparedToolInvocation, isToolResultOutputDetails, IToolConfirmationMessages, IToolData, IToolProgressStep, IToolResult, ToolDataSource } from '../../tools/languageModelToolsService.js';
@@ -62,7 +63,9 @@ export class ChatToolInvocation implements IChatToolInvocation {
isStreaming: boolean = false,
chatRequestId?: string
) {
this.invocationMessage = preparedInvocation?.invocationMessage ?? '';
// For streaming invocations, use a default message until handleToolStream provides one
const defaultStreamingMessage = isStreaming ? localize('toolInvocationMessage', "Using \"{0}\"", toolData.displayName) : '';
this.invocationMessage = preparedInvocation?.invocationMessage ?? defaultStreamingMessage;
this.pastTenseMessage = preparedInvocation?.pastTenseMessage;
this.originMessage = preparedInvocation?.originMessage;
this.confirmationMessages = preparedInvocation?.confirmationMessages;