Newlines removed/incorrect code generated for getPasteEdits
#58784
Labels
Bug
A bug in TypeScript
Needs Investigation
This issue needs a team member to investigate its status.
Milestone
Imagine the following file:
When I press Ctrl+x on the line containing
f
, and paste it again, what VS Code does is it creates a buffer with the following contents:// comment
and then sends **this request for paste edits**
and receives **this response**.
After the paste, the file no longer contains the original contents, and instead contains invalid text.
// commentfunction f() {}
The text was updated successfully, but these errors were encountered: