mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 09:08:48 +01:00
add wait for command function (#291653)
This commit is contained in:
+3
-1
@@ -371,7 +371,9 @@ export class ChatTerminalToolProgressPart extends BaseChatToolInvocationSubPart
|
||||
this.domNode = progressPart.domNode;
|
||||
}
|
||||
|
||||
if (expandedStateByInvocation.get(toolInvocation) || (this._isInThinkingContainer && IChatToolInvocation.isComplete(toolInvocation))) {
|
||||
// Only auto-expand in thinking containers if there's actual output to show
|
||||
const hasStoredOutput = !!terminalData.terminalCommandOutput;
|
||||
if (expandedStateByInvocation.get(toolInvocation) || (this._isInThinkingContainer && IChatToolInvocation.isComplete(toolInvocation) && hasStoredOutput)) {
|
||||
void this._toggleOutput(true);
|
||||
}
|
||||
this._register(this._terminalChatService.registerProgressPart(this));
|
||||
|
||||
Reference in New Issue
Block a user