bazelbuild / vscode-bazel

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

support relative paths for `bazel.buildifierExecutable` #329

Closed bradzacher closed 4 months ago

bradzacher commented 6 months ago

Currently buildifier is executed from the disk root, which means that if you configure a path like "bazel.buildifierExecutable": "./path/to/buildifier" then the extension will execute /path/to/buildifier - which likely doesn't exist.

It would be good if the CWD for the execution could be set to the workspace root to enable relative path config. This is similar to #132 but doesn't require any variable resolution.