Fix chat welcome view showing up (#227096)

Fix microsoft/vscode-copilot-release#1507
roblou/naked-gamefowl
Rob Lourens 2024-08-29 09:41:27 -07:00 committed by GitHub
parent dfb96d11d3
commit 5b066ec2e3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -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;
}

View File

@ -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) {