Open jansedlon opened 3 months ago
Do you have other extensions that run actions on save ? - If so, could try disabling them and try again to make sure that the Biome extension is the one causing the delay.
I disabled everything except biome and it was still happening.
PS: hmmm.. Interesting, when everything is disabled, it's still happening, sorry! How's that possible? That configuration should be biome specific?
What I meant is when you save a file, VS Code will run all "on save" actions, and sometimes other extensions register their own actions which can have an impact.
I see you mentioned using the insiders version of VS Code. Does that also happen in the stable version ?
Also, if you're able to, a link to a reproduction repo would help troubleshooting.
There appears to be a decent repro in this issue: https://github.com/biomejs/biome-vscode/issues/214
Link: https://github.com/OliverJAsh/biome-vscode-quickfix-import-issue/compare/1.7.3
I've also experienced this in Zod. You can pull down this branch to repro: https://github.com/colinhacks/zod/tree/slow-quickfix
$ gh repo clone colinhacks/zod
$ cd zod
$ git checkout slow-quickfix
$ yarn
$ code .
I've introduced a formatting issue at the top of src/index.ts
. Saving that file in VS Code should trigger the slow quickfixing. Interestingly I get faster fix-on-save with "source.fixAll": "always"
. Does that behave in a meaningfully different way than "quickfix.biome": "always"
?
VS Code version
1.90.0-insiders
Extension version
2.2.3
Biome version
1.7.3
Operating system
Description
When this config is enabled in vscode settings
it slows down saving files in vscode. But not always 😅. When i type something and immediately hit
Cmd + Save
, there's like a second delay before the file is saved.Interestingly enough, if i type something and wait a second and hit save, the file is saved immediately.
Steps to reproduce
"quickfix.biome": "explicit"
,Expected behavior
It should save immediately
Does this issue occur when using the CLI directly?
Not sure / Not applicable
Logs
Logs contain actions that happened when i entered "Enter" and immediately save