From 5b066ec2e30cf46bc636d6d27af5404713f6b0f8 Mon Sep 17 00:00:00 2001 From: Rob Lourens Date: Thu, 29 Aug 2024 09:41:27 -0700 Subject: [PATCH] Fix chat welcome view showing up (#227096) Fix microsoft/vscode-copilot-release#1507 --- src/vs/workbench/contrib/chat/browser/chatViewPane.ts | 2 +- src/vs/workbench/contrib/chat/common/chatAgents.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/vs/workbench/contrib/chat/browser/chatViewPane.ts b/src/vs/workbench/contrib/chat/browser/chatViewPane.ts index aa2655cba87..68fb88bd71a 100644 --- a/src/vs/workbench/contrib/chat/browser/chatViewPane.ts +++ b/src/vs/workbench/contrib/chat/browser/chatViewPane.ts @@ -115,7 +115,7 @@ export class ChatViewPane extends ViewPane { } override shouldShowWelcome(): boolean { - if (!this.chatAgentService.getDefaultAgent(ChatAgentLocation.Panel)) { + if (!this.chatAgentService.getContributedDefaultAgent(ChatAgentLocation.Panel)) { return true; } diff --git a/src/vs/workbench/contrib/chat/common/chatAgents.ts b/src/vs/workbench/contrib/chat/common/chatAgents.ts index f565b5b9266..5725b2b0850 100644 --- a/src/vs/workbench/contrib/chat/common/chatAgents.ts +++ b/src/vs/workbench/contrib/chat/common/chatAgents.ts @@ -262,6 +262,7 @@ export class ChatAgentService implements IChatAgentService { }; const entry = { data }; this._agents.set(id, entry); + this._onDidChangeAgents.fire(undefined); return toDisposable(() => { this._agents.delete(id); if (data.isDefault) {