File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
src/vs/workbench/contrib/chat/browser/actions Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import { AsyncIterableObject } from '../../../../../base/common/async.js';
7
7
import { VSBuffer } from '../../../../../base/common/buffer.js' ;
8
8
import { CancellationTokenSource } from '../../../../../base/common/cancellation.js' ;
9
9
import { CharCode } from '../../../../../base/common/charCode.js' ;
10
+ import { isCancellationError } from '../../../../../base/common/errors.js' ;
10
11
import { ResourceMap } from '../../../../../base/common/map.js' ;
11
12
import { isEqual } from '../../../../../base/common/resources.js' ;
12
13
import * as strings from '../../../../../base/common/strings.js' ;
@@ -241,7 +242,9 @@ export class ApplyCodeBlockOperation {
241
242
return result ;
242
243
}
243
244
} catch ( e ) {
244
- this . notify ( localize ( 'applyCodeBlock.error' , "Failed to apply code block: {0}" , e . message ) ) ;
245
+ if ( ! isCancellationError ( e ) ) {
246
+ this . notify ( localize ( 'applyCodeBlock.error' , "Failed to apply code block: {0}" , e . message ) ) ;
247
+ }
245
248
} finally {
246
249
cancellationTokenSource . dispose ( ) ;
247
250
}
You can’t perform that action at this time.
0 commit comments