FR: document formatting
capability for the biome lsp-proxy
#87
Replies: 2 comments 15 replies
-
Biome does support formatting via LSP biome/crates/rome_lsp/src/server.rs Lines 148 to 156 in dd9330f It's possible that your client is not able to register to this event because it doesn't support dynamic registration of the events biome/crates/rome_lsp/src/session.rs Lines 358 to 365 in dd9330f |
Beta Was this translation helpful? Give feedback.
-
@chrisgrieser Do you still need this feature? I think we are going to drop the |
Beta Was this translation helpful? Give feedback.
-
Not sure which issue type this belongs to, so opening a discussion here first.
While
biome
doubles as a CLI and as an LSP, only the linting/analyzing capabilities are accessible via CLI and LSP. Formatting capabilities are only accessible via CLI, since biome apparently does not register the document formatting lsp server capability.So for the editor integration of biome, this results in the somewhat awkward situation where I integrate linting via the lsp-client, and formatting via the formatting-client of my editor. (Which, in the case of nvim, require totally different plugins.)
relevant docs: https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocument_formatting
Beta Was this translation helpful? Give feedback.
All reactions