bazel-contrib / vscode-bazel

Bazel support for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=BazelBuild.vscode-bazel
Apache License 2.0
241 stars 77 forks source link

don't throw when buildifier is not found #193

Open Toxicable opened 4 years ago

Toxicable commented 4 years ago

We'd like to just use this extension for code highlighting. So we don't need to have buildifier or bazel installed globally on our systems. Possibly adding config to disable this behaviour would suffice

eltix commented 3 years ago

Yes this would very much appreciated. This extension is currently unusable without buildifier installed. VScode hangs forever upon file saving.

zopsicle commented 3 years ago

A workaround for syntax highlighting is to uninstall the extension and exploit the similarity between Skylark and Python, and put the following in your VS Code configuration file:

"files.associations": {
    "BUILD": "python",
    "WORKSPACE": "python",
    "*.bzl": "python",
}