Preventing files from being cleared on save with biome check
using --stdin-file-path
#522
-
I'm currently using the As an example, here is how I set up
Here is an example TSX file:
If I save this file in Zed in the current state, the file is cleared. But, if I remove, say, the semi-colon, or change the order of the imports (i.e. In summary, I'm keen to know if there is a workaround for this i.e. a way to abort piping empty inputs to stdout or always passing the file contents. My Biome Config
References |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
That's probably a bug 🐛 There's no current workaround, so opening a PR and fixing the issue is the best course of action. And I think the fix is to return the original output regardless of the outcome of the command. |
Beta Was this translation helpful? Give feedback.
-
Resolved in #543. The next release will have this fix |
Beta Was this translation helpful? Give feedback.
That's probably a bug 🐛
There's no current workaround, so opening a PR and fixing the issue is the best course of action.
And I think the fix is to return the original output regardless of the outcome of the command.