mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-19 08:08:39 +01:00
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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user