withered-magic / starpls

An LSP implementation for Starlark, the configuration language used by Bazel and Buck2.
Apache License 2.0
80 stars 7 forks source link

Implement `textDocument/formatting` #267

Open zaucy opened 4 days ago

zaucy commented 4 days ago

At least for bazel files spawning buildifier when an lsp formatting request is made could be sufficient.

withered-magic commented 3 days ago

I think this makes sense! I currently use Bazel VSCode extension which currently takes care of calling buildifier but can see this being useful for other editors, just need to do some research to see if this could potentially cause conflicts with the default VSCode functionality and if so make it an opt-in feature