mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-02 08:15:56 +01:00
make sure to cancel current request on restore checkpoints (#306901)
This commit is contained in:
@@ -495,6 +495,8 @@ async function restoreSnapshotWithConfirmationByRequestId(accessor: ServicesAcce
|
||||
await configurationService.updateValue('chat.editing.confirmEditRequestRemoval', false);
|
||||
}
|
||||
|
||||
await chatService.cancelCurrentRequestForSession(sessionResource, 'restoreCheckpoint');
|
||||
|
||||
// Restore the snapshot to what it was before the request(s) that we deleted
|
||||
const snapshotRequestId = chatRequests[itemIndex].id;
|
||||
await session.restoreSnapshot(snapshotRequestId, undefined);
|
||||
|
||||
Reference in New Issue
Block a user