We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5186c96 commit 4dac048Copy full SHA for 4dac048
src/client/chat/utils.ts
@@ -163,7 +163,9 @@ export function getToolResponseIfNotebook(resource: Uri | undefined) {
163
}
164
165
export function isCancellationError(error: unknown): boolean {
166
- return !!error && (error instanceof CancellationError || (error as Error).name === 'CancellationError');
+ return (
167
+ !!error && (error instanceof CancellationError || (error as Error).message === new CancellationError().message)
168
+ );
169
170
171
export function doesWorkspaceHaveVenvOrCondaEnv(resource: Uri | undefined, api: PythonExtension['environments']) {
0 commit comments