Wait for chat cancellation to complete before proceeding (#300001)

* Wait for chat cancellation to complete before proceeding
This is an inherent race condition in the architecture, working on changing it, in the meantime, work around this...

* Fix test
This commit is contained in:
Rob Lourens
2026-03-07 12:44:53 -08:00
committed by GitHub
parent 5734afd12b
commit 010781f467
11 changed files with 99 additions and 19 deletions

View File

@@ -605,7 +605,7 @@ export class InlineChatController implements IEditorContribution {
if (!session) {
return;
}
this._chatService.cancelCurrentRequestForSession(session.chatModel.sessionResource, 'inlineChatReject');
await this._chatService.cancelCurrentRequestForSession(session.chatModel.sessionResource, 'inlineChatReject');
await session.editingSession.reject();
session.dispose();
}