Fix chat welcome view showing up (#227096)
Fix microsoft/vscode-copilot-release#1507roblou/naked-gamefowl
parent
dfb96d11d3
commit
5b066ec2e3
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue