mirror of
https://github.com/microsoft/vscode.git
synced 2026-09-29 18:09:01 +01:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user