-
-
Notifications
You must be signed in to change notification settings - Fork 7
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
Formatting doesn't seem to work in Zed 0.151.2
#46
Comments
I can't reporoduce your issue, can you attach logs? |
I believe this is actually a separate issue, mostly caused by Zed, I haven't got time to look into this. Issue on Zed repo: zed-industries/zed#15464 |
Sorry for being so late. I did some testing now, looked at the logs and disabled prettier. Biome is formatting fine but the code actions don't run. But that seems to a zed issue as pointed out above. |
Doesn't actually work completely, due to biomejs/biome-zed#46
Formatting is working for me, but code actions aren't running. On Zed 154. |
Code actions seem to be fixed now after latest Biome release. I was able to organize imports and apply safe fixes on save.
// settings.json
{
"formatter": {
"language_server": {
"name": "biome"
}
},
"code_actions_on_format": {
"source.fixAll.biome": true,
"source.organizeImports.biome": true
}
} |
@Aleksion You may want to remove And fyi |
@elawad had the opposite experience, Biome seemed to be refusing to format or do anything, and I had to re-add the |
Reference https://zed.dev/docs/configuring-zed#format-on-save for updated configuration options. Old options like Since code-actions seem to work again, as well as formatting, ill close this issue. |
@luckydye I wish I didn't have to use that configuration option, but surprisingly (at least to me) the following language specific configuration does not work: "TypeScript": {
"format_on_save": "on",
"formatter": "language_server",
"language_servers": [
"biome",
"vtsls",
"!typescript-language-server",
"!eslint"
]
} Removing the "formatter" option and changing "format_on_save" to language server allows formatting to work again. Attempting to do my formatting with Biome. Maybe this should be another issue? |
@chrisvander try the recomended configuration for |
That was the first thing I tried. This does not work, not on save nor with the "TypeScript": {
"formatter": {
"language_server": {
"name": "biome"
}
},
"code_actions_on_format": {
"source.fixAll.biome": true,
"source.organizeImports.biome": true
},
"language_servers": [
"vtsls",
"biome",
"!typescript-language-server",
"!eslint"
]
} |
This feels like it shouldn't work, but does: "TypeScript": {
"format_on_save": {
"language_server": {
"name": "biome"
}
},
"code_actions_on_format": {
"source.fixAll.biome": true,
"source.organizeImports.biome": true
},
"language_servers": [
"vtsls",
"biome",
"!typescript-language-server",
"!eslint"
]
} Note that I haven't figured out the right combination of settings to get What other info should I share? |
@chrisvander Perhaps the TypeScript key config is not working? And I didn't need to include |
I was never able to get the Biome extension to work.. UNTIL I did a clean re-install of Zed. That means deleting both the application, and it's data files, which on macOS, you can find in I now am able to get lints to show up in-editor, and formatting works too. "formatter": {
"language_server": {
"name": "biome"
}
},
"language_servers": [
"!eslint",
"!tailwindcss-language-server",
"!typescript-language-server",
"..."
],
"prettier": {
"allowed": false
},
"code_actions_on_format": {
"source.fixAll.biome": true,
"source.organizeImports.biome": true
}, |
has a reference. this work for me . i have this config: "lsp": {
"biome": {
"settings": {
"require_config_file": true
}
}
},
"formatter": {
"language_server": {
"name": "biome"
}
},
"code_actions_on_format": {
"source.fixAll.biome": true,
"source.organizeImports.biome": true
} |
#45 Fixes the issue of biome not being downloaded at all but still the downloaded version isn't used to do formatting when formatting is enabled. Obviously, the fixes related to it also don't get applied though I don't if that might be a separate problem or just a resultant of this one.
Steps to Reproduce
biome
from the extensions tabConfig
The text was updated successfully, but these errors were encountered: