Skip to content

Commit

Permalink
Make queries share the same server by default (#270)
Browse files Browse the repository at this point in the history
The bazel query used to introspect the targets available incorrectly traverses convenience symlinks when the output base has changed. This is a bug in Bazel (see bazelbuild/bazel#10653). A lot of people are hitting this, since it happens with the default setup of bazel and this plugin. Until it is fixed upstream, this works around this issue by enabling the `queriesShareServer` option by default.

Workaround for #216

Co-authored-by: Cameron Martin <[email protected]>
  • Loading branch information
limdor and cameron-martin authored Jan 26, 2024
1 parent a476135 commit 64c9d7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,8 @@
},
"bazel.queriesShareServer": {
"type": "boolean",
"default": false,
"description": "Use the same Bazel server for queries and builds. By default, vscode-bazel uses a separate server for queries so that they can be executed in parallel with builds. You can enable this setting if running multiple Bazel servers has a negative performance impact on your system, but you may experience degraded performance in Visual Studio Code for operations that require queries."
"default": true,
"description": "Use the same Bazel server for queries and builds. By default, vscode-bazel uses the same server for queries and builds in order to have it easier for the user to set up the plugin. However, you may experience degraded performance in Visual Studio Code for operations that require queries. You can disable this setting so that queries and builds can be executed in parallel. Keep in mind that you might get some errors after disabling this setting if you do not configure it properly. See https://github.com/bazelbuild/vscode-bazel/issues/265."
},
"bazel.queryOutputBase": {
"type": "string",
Expand Down

0 comments on commit 64c9d7e

Please sign in to comment.