Skip to content

Commit 3e9cab0

Browse files
authored
Fix error from undefined 'isSettled' (microsoft#217646)
Workaround for microsoft#217645
1 parent 6f3598b commit 3e9cab0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/vs/workbench/contrib/chat/browser/chatContentParts/chatTaskContentPart.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ export class ChatTaskContentPart extends Disposable implements IChatContentPart
3434
this.domNode.appendChild(refsPart.domNode);
3535
this.onDidChangeHeight = refsPart.onDidChangeHeight;
3636
} else {
37-
const progressPart = this._register(instantiationService.createInstance(ChatProgressContentPart, task, renderer, context, !task.isSettled(), true));
37+
// #217645
38+
const isSettled = task.isSettled?.() ?? true;
39+
const progressPart = this._register(instantiationService.createInstance(ChatProgressContentPart, task, renderer, context, !isSettled, true));
3840
this.domNode = progressPart.domNode;
3941
this.onDidChangeHeight = Event.None;
4042
}

0 commit comments

Comments
 (0)