You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The language server generally is working, as I can see Biome's lint diagnostics appearing in my files. The logs show that no message is sent to the language server when I run the :format command. This exchange earlier in the logs may be a hint as to why:
2024-06-30T20:56:45.154 helix_term::application [DEBUG] received editor event: LanguageServerMessage((1, MethodCall(MethodCall { jsonrpc: Some(V2), method: "client/registerCapability", params: Map({"registrations": Array [Object {"id": String("biome_range_formatting"), "method": String("textDocument/rangeFormatting")}, Object {"id": String("biome_on_type_formatting"), "method": String("textDocument/onTypeFormatting"), "registerOptions": Object {"documentSelector": Null, "firstTriggerCharacter": String("}"), "moreTriggerCharacter": Array [String("]"), String(")")]}}, Object {"id": String("biome_formatting"), "method": String("textDocument/formatting")}, Object {"id": String("biome_did_change_workspace_settings"), "method": String("workspace/didChangeWatchedFiles"), "registerOptions": Object {"watchers": Array [Object {"globPattern": String("/home/robin/code/kuna/biome.json"), "kind": Number(7)}, Object {"globPattern": String("/home/robin/code/kuna/biome.jsonc"), "kind": Number(7)}, Object {"globPattern": String("/home/robin/code/kuna/rome.json"), "kind": Number(7)}]}}]}), id: Num(2) })))
2024-06-30T20:56:45.154 helix_term::application [WARN] Ignoring a client/registerCapability request because dynamic capability registration is not enabled. Please report this upstream to the language server
2024-06-30T20:56:45.154 helix_term::application [WARN] Ignoring a client/registerCapability request because dynamic capability registration is not enabled. Please report this upstream to the language server
2024-06-30T20:56:45.154 helix_term::application [WARN] Ignoring a client/registerCapability request because dynamic capability registration is not enabled. Please report this upstream to the language server
If the Biome language server isn't statically advertising that it's capable of formatting, that could explain why Helix isn't making any formatting request. I don't know a whole lot about LSP, but this comment suggests that Helix has no plans to support dynamic capability registration, but that things should generally still work without it.
Code of Conduct
I agree to follow Biome's Code of Conduct
The text was updated successfully, but these errors were encountered:
Environment information
What happened?
:format
commandNothing happens :(
Expected result
The file should be formatted.
The language server generally is working, as I can see Biome's lint diagnostics appearing in my files. The logs show that no message is sent to the language server when I run the
:format
command. This exchange earlier in the logs may be a hint as to why:If the Biome language server isn't statically advertising that it's capable of formatting, that could explain why Helix isn't making any formatting request. I don't know a whole lot about LSP, but this comment suggests that Helix has no plans to support dynamic capability registration, but that things should generally still work without it.
Code of Conduct
The text was updated successfully, but these errors were encountered: