Skip to content

Commit 4dac048

Browse files
committed
Updates
1 parent 5186c96 commit 4dac048

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/client/chat/utils.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,9 @@ export function getToolResponseIfNotebook(resource: Uri | undefined) {
163163
}
164164

165165
export function isCancellationError(error: unknown): boolean {
166-
return !!error && (error instanceof CancellationError || (error as Error).name === 'CancellationError');
166+
return (
167+
!!error && (error instanceof CancellationError || (error as Error).message === new CancellationError().message)
168+
);
167169
}
168170

169171
export function doesWorkspaceHaveVenvOrCondaEnv(resource: Uri | undefined, api: PythonExtension['environments']) {

0 commit comments

Comments
 (0)