1.87.2
2.2.2
1.6.1
Spent a lot of time trying to track this down on discord, and was finally able to figure it out with the help of @Sec-ant
If your vscode settings are format on paste
or are format mode: modification
it seems that weird things happen. I assume this is because only small code fragments are being sent to biome instead of the full file, which biome does not support. See the repo case below.
To fix my issues I had to turn off both Format on Paste
and the Format Save Mode
to file
This small snippet was enough to cause problems for me:
// let us set an empty customer
if (userJson.customer != undefined && userJson.customer !== null) {
fakeItem.stripe_customer = { S: userJson.customer };
}
To recreate it you can just enable format on paste and then copy paste the comment let us set an empty customer
and you'll see the if
block deleted. If you want to test the format on modification mode, you can correct the biome issue (!=
should be !==
) and you'll also see the if block get deleted.
Would expect the correct formatting.
Not sure / Not applicable
No response
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too