🐛 Code deleted when pasting with format on paste enabled #5489
Labels
A-Formatter
Area: formatter
A-LSP
Area: language server protocol
S-Bug-confirmed
Status: report has been confirmed as a valid bug
VS Code version
1.98.2
Extension version
2.3.2
Biome version
1.9.4
Operating system
Description
When format on copy is enabled, a line is removed completely when pasting.
With my attempts, any file, only ones with pre-existing content, loses this line when pasting. The comment seems to be the issue as it doesn't happen without.
See here for demonstration:
https://r2.e-z.host/7fc132b6-0e3d-4fa9-b387-c8610f2f9179/omj9qk6nrrq8k50.mp4
Steps to reproduce
Expected behavior
I expect the file to format properly, or at least not lose a line I paste.
Does this issue occur when using the CLI directly?
Not sure / Not applicable
Link to a minimal reproduction
https://github.com/TinnyTerr/biome-repro-1742737422403/ (Probably N/A)
Logs
The text was updated successfully, but these errors were encountered: