devoncarew / bazel-code

A Bazel plugin for VSCode.
https://marketplace.visualstudio.com/items?itemName=DevonDCarew.bazel-code
BSD 3-Clause "New" or "Revised" License
14 stars 8 forks source link

Add formatting using buildifier #2

Closed tbroyer closed 7 years ago

tbroyer commented 7 years ago

This extension would be even better if it could leverage buildifier to format the WORKSPACE and BUILD files. I'm not a great Bazel user (just toying with it from time to time) but I'd happily use that with editor.formatOnSave. Maybe it could start with using it if available in the $PATH, then possibly (if Go is available) propose to install it with a go get.

devoncarew commented 7 years ago

Sounds great! I mostly wrote this to get bazel syntax highlighting, but am happy to take contributions.