Skip to content

Commit 27c92cc

Browse files
committed
Reword comment.
1 parent 1ac59fc commit 27c92cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Extension/src/LanguageServer/client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2348,8 +2348,8 @@ export class DefaultClient implements Client {
23482348
return result;
23492349
}
23502350

2351-
// This is used to avoid processing unnecessary LSP cancel requests during a Copilot completion
2352-
// when the result could still be used in 2 minutes in its cache before it sends another request.
2351+
// Copilot completions will cancel the current request if it times out (showing the user completion results without context info),
2352+
// but the results can still be used for future requests (due to caching) so it's better to return results instead of cancelling.
23532353
private static async withoutLspCancellationHandling<T>(task: () => Promise<T>): Promise<T> {
23542354
let result: T;
23552355

0 commit comments

Comments
 (0)