Skip to content

Commit 5b066ec

Browse files
authored
Fix chat welcome view showing up (microsoft#227096)
Fix microsoft/vscode-copilot-release#1507
1 parent dfb96d1 commit 5b066ec

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/vs/workbench/contrib/chat/browser/chatViewPane.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ export class ChatViewPane extends ViewPane {
115115
}
116116

117117
override shouldShowWelcome(): boolean {
118-
if (!this.chatAgentService.getDefaultAgent(ChatAgentLocation.Panel)) {
118+
if (!this.chatAgentService.getContributedDefaultAgent(ChatAgentLocation.Panel)) {
119119
return true;
120120
}
121121

src/vs/workbench/contrib/chat/common/chatAgents.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,7 @@ export class ChatAgentService implements IChatAgentService {
262262
};
263263
const entry = { data };
264264
this._agents.set(id, entry);
265+
this._onDidChangeAgents.fire(undefined);
265266
return toDisposable(() => {
266267
this._agents.delete(id);
267268
if (data.isDefault) {

0 commit comments

Comments
 (0)