Skip to content

Commit 34515f1

Browse files
committed
ci: fix
1 parent ada72e1 commit 34515f1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/copilot/contextProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ async function resolveJavaContext(request: ResolveRequest, copilotCancel: vscode
121121
sendContextTelemetry(request, start, items, "cancelled_by_copilot");
122122
throw error;
123123
}
124-
if (error instanceof vscode.CancellationError || error.message === CancellationError.Canceled) {
124+
if (error instanceof vscode.CancellationError || error.message === CancellationError.CANCELED) {
125125
sendContextTelemetry(request, start, items, "cancelled_internally");
126126
throw new InternalCancellationError();
127127
}

src/copilot/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ import {
1111
* Error classes for Copilot context provider cancellation handling
1212
*/
1313
export class CancellationError extends Error {
14-
static readonly canceled = "Canceled";
14+
static readonly CANCELED = "Canceled";
1515
constructor() {
16-
super(CancellationError.canceled);
16+
super(CancellationError.CANCELED);
1717
this.name = this.message;
1818
}
1919
}

0 commit comments

Comments
 (0)