Не подтверждена Коммит 22573d7b создал по автору Johannes's avatar Johannes
Просмотр файлов

finish inline chat session when EH restarts or dies

fixes https://github.com/microsoft/vscode-copilot-release/issues/1535
владелец 527e41ff
......@@ -204,10 +204,7 @@ export class InlineChatController implements IEditorContribution {
this._store.add(this._inlineChatSessionService.onDidEndSession(e => {
if (e.session === this._session && e.endedByExternalCause) {
this._log('session ENDED by external cause');
this._session = undefined;
this._strategy?.cancel();
this._resetWidget();
this.cancelSession();
this.finishExistingSession();
}
}));
......
......@@ -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);
}
......
Поддерживает Markdown
0% или .
You are about to add 0 people to the discussion. Proceed with caution.
Сначала завершите редактирование этого сообщения!
Пожалуйста, зарегистрируйтесь или чтобы прокомментировать