pass the correct cancellation token to working copy participants, https://github.com/microsoft/vscode/issues/135036

This commit is contained in:
Johannes Rieken 2021-10-19 14:45:48 +02:00
parent 95fe3ec83d
commit 19dca64e38
No known key found for this signature in database
GPG key ID: 96634B5AF12F8798

View file

@ -89,7 +89,7 @@ export class MainThreadFileSystemEventService {
delay: Math.min(timeout / 2, 3000)
}, () => {
// race extension host event delivery against timeout AND user-cancel
const onWillEvent = proxy.$onWillRunFileOperation(operation, files, timeout, token);
const onWillEvent = proxy.$onWillRunFileOperation(operation, files, timeout, cts.token);
return raceCancellation(onWillEvent, cts.token);
}, () => {
// user-cancel