Skip to content

Commit e3f59aa

Browse files
committed
Fix an unnecessary cancel/re-request with GitHub Copilot requests.
1 parent bfa3c75 commit e3f59aa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Extension/src/LanguageServer/client.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2318,9 +2318,13 @@ export class DefaultClient implements Client {
23182318
}
23192319
}
23202320

2321+
// Don't cancel if the result has already been computed, because the result might still be usable
2322+
// without needing to send an unnecessary re-request, which is the case for the callback to registerRelatedFilesProvider.
2323+
/*
23212324
if (token.isCancellationRequested) {
23222325
throw new vscode.CancellationError();
23232326
}
2327+
*/
23242328

23252329
return result;
23262330
}

0 commit comments

Comments
 (0)