VS Code version
1.108.0
Extension version
3.3.0
Biome version
2.3.10
Operating system
Description
Biome mildly corrupts formatting with formatOnType enabled when closing parens or brackets by adding extra padding before the opening paren/bracket and sometimes removes newlines.
For example
Becomes
or
Becomes
(), [] and {} all suffer from this. Happens in JS and JSON.
In some circumstances this doesn't happen, for example the above console.log() example doesn't happen if you type it inside unclosed curly brackets.
As a side note there doesn't seem to be a way to disable format-on-type specifically for Biome and I'd rather not disable that for everything that isn't formatted by biome also.
Steps to reproduce
- Ensure
editor.formatOnType is enabled
- Close any paren or bracket in code
Expected behavior
Bracket is closed, not much else.
Does this issue occur when using the CLI directly?
Not sure / Not applicable
Link to a minimal reproduction
No response
Logs
VS Code version
1.108.0
Extension version
3.3.0
Biome version
2.3.10
Operating system
Description
Biome mildly corrupts formatting with formatOnType enabled when closing parens or brackets by adding extra padding before the opening paren/bracket and sometimes removes newlines.
For example
Becomes
or
Becomes
(),[]and{}all suffer from this. Happens in JS and JSON.In some circumstances this doesn't happen, for example the above console.log() example doesn't happen if you type it inside unclosed curly brackets.
As a side note there doesn't seem to be a way to disable format-on-type specifically for Biome and I'd rather not disable that for everything that isn't formatted by biome also.
Steps to reproduce
editor.formatOnTypeis enabledExpected behavior
Bracket is closed, not much else.
Does this issue occur when using the CLI directly?
Not sure / Not applicable
Link to a minimal reproduction
No response
Logs