Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit72f68c0

Browse files
authored
match Copilot's CanceledError which has name == message == "Canceled". (microsoft#13357)
1 parent3a837ec commit72f68c0

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

‎Extension/src/LanguageServer/copilotCompletionContextProvider.ts‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,13 @@ class DefaultValueFallback extends Error {
2323

2424
classCancellationErrorextendsError{
2525
staticreadonlyCanceled="Canceled";
26-
constructor(){super(CancellationError.Canceled);}
26+
constructor(){
27+
super(CancellationError.Canceled);
28+
this.name=this.message;
29+
}
2730
}
2831

29-
classInternalCancellationErrorextendsError{
30-
staticreadonlyCanceled="CpptoolsCanceled";
31-
constructor(){super(InternalCancellationError.Canceled);}
32+
classInternalCancellationErrorextendsCancellationError{
3233
}
3334

3435
classCopilotCancellationErrorextendsCancellationError{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp