mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-20 00:28:52 +01:00
Handle empty edits for TS paste (#222109)
Should use default paste in this case. Talking with TS if this should be handled differently from the server but worth adding the workaround for now
This commit is contained in:
@@ -106,7 +106,7 @@ class DocumentPasteProvider implements vscode.DocumentPasteEditProvider {
|
||||
pasteLocations: ranges.map(typeConverters.Range.toTextSpan),
|
||||
copiedFrom
|
||||
}, token));
|
||||
if (response.type !== 'response' || !response.body || token.isCancellationRequested) {
|
||||
if (response.type !== 'response' || !response.body?.edits.length || token.isCancellationRequested) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user