mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 02:28:34 +01:00
finish inline chat session when EH restarts or dies (#229132)
fixes https://github.com/microsoft/vscode-copilot-release/issues/1535
This commit is contained in:
@@ -157,7 +157,7 @@ export class InlineChatSessionServiceImpl implements IInlineChatSessionService {
|
||||
}));
|
||||
|
||||
store.add(this._chatAgentService.onDidChangeAgents(e => {
|
||||
if (e === undefined && !this._chatAgentService.getAgent(agent.id)) {
|
||||
if (e === undefined && (!this._chatAgentService.getAgent(agent.id) || !this._chatAgentService.getActivatedAgents().includes(agent))) {
|
||||
this._logService.trace(`[IE] provider GONE for ${editor.getId()}, ${agent.extensionId}`);
|
||||
this._releaseSession(session, true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user