-
-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 Biome doesn't format on save #238
Comments
Same here. But mine doesn't work even with "Format Document...". I have to run CLI (npx @biomejs/biome format --write ) to format the files correctly. And my Settings at VsCode are configured. "editor.formatOnSave": true, |
Can anyone who encounters this issue share a repo for reproduction / a screen record of the full editor window that shows the problem, and share the daemon logs when this issue happens? (You can run Otherwise it's difficult to debug. |
I dont have reproducible playground due to I don't know what is causing this, but well, here's daemon logs: https://hastebin.skyra.pw/eloyaxulaj.yaml Tried @heliocj 's workaround but they didn't work. One thing different is that I can format them correctly with biome cli |
The logs don't show any formatting request, which means it's possible you have some client setting which prevents from using Biome as default formatter. |
@ematipico I guess I set VSCode completely :( {
"editor.defaultFormatter": "biomejs.biome",
"[javascript]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[typescript]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[typescriptreact]": {
"editor.defaultFormatter": "biomejs.biome"
},
"editor.codeActionsOnSave": {
"quickfix.biome": "explicit",
"source.organizeImports.biome": "explicit"
},
} |
Really weird. Can you share with us the repository, or a minimal reproduction? |
Yeah of course, I will make a minimal reproduction tomorrow |
@ematipico https://github.com/rikusen0335/biome-minimal-reproduction from CLI, I can format codes like by using:
But when Ctrl + S in VSCode, it doesn't format. |
VS Code version
1.90.0
Extension version
2.3.0
Biome version
1.8.0
Operating system
Description
As title says, biome won't format codes in vscode when Ctrl + S.
Ctrl + Shift + P
>Format Document...
will correctly format.Steps to reproduce
Expected behavior
Biome will format codes when Ctrl + S
Does this issue occur when using the CLI directly?
Not sure / Not applicable
Logs
outputs from VS Code Biome
The text was updated successfully, but these errors were encountered: