vscode-bazel icon indicating copy to clipboard operation
vscode-bazel copied to clipboard

don't throw when buildifier is not found

Open Toxicable opened this issue 5 years ago • 2 comments
trafficstars

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

Toxicable avatar Mar 31 '20 01:03 Toxicable

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

eltix avatar May 19 '21 14:05 eltix

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",
}

zopsicle avatar Oct 02 '21 19:10 zopsicle