mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 17:19:48 +01:00
Cancelling application of edits results in a dialog notification (#229805)
This commit is contained in:
committed by
GitHub
parent
67a93b0e45
commit
9a91d3382e
@@ -7,6 +7,7 @@ import { AsyncIterableObject } from '../../../../../base/common/async.js';
|
||||
import { VSBuffer } from '../../../../../base/common/buffer.js';
|
||||
import { CancellationTokenSource } from '../../../../../base/common/cancellation.js';
|
||||
import { CharCode } from '../../../../../base/common/charCode.js';
|
||||
import { isCancellationError } from '../../../../../base/common/errors.js';
|
||||
import { ResourceMap } from '../../../../../base/common/map.js';
|
||||
import { isEqual } from '../../../../../base/common/resources.js';
|
||||
import * as strings from '../../../../../base/common/strings.js';
|
||||
@@ -241,7 +242,9 @@ export class ApplyCodeBlockOperation {
|
||||
return result;
|
||||
}
|
||||
} catch (e) {
|
||||
this.notify(localize('applyCodeBlock.error', "Failed to apply code block: {0}", e.message));
|
||||
if (!isCancellationError(e)) {
|
||||
this.notify(localize('applyCodeBlock.error', "Failed to apply code block: {0}", e.message));
|
||||
}
|
||||
} finally {
|
||||
cancellationTokenSource.dispose();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user