mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 18:49:00 +01:00
Make preparePasteEdits interrupt diagnostics too
For #235959 Already done for the main paste request but we should do it for `preparePasteEdits` too
This commit is contained in:
@@ -60,10 +60,10 @@ class DocumentPasteProvider implements vscode.DocumentPasteEditProvider {
|
||||
return;
|
||||
}
|
||||
|
||||
const response = await this._client.execute('preparePasteEdits', {
|
||||
const response = await this._client.interruptGetErr(() => this._client.execute('preparePasteEdits', {
|
||||
file,
|
||||
copiedTextSpan: ranges.map(typeConverters.Range.toTextSpan),
|
||||
}, token);
|
||||
}, token));
|
||||
if (token.isCancellationRequested || response.type !== 'response' || !response.body) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user