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

Support really large repos better

Open thomasvl opened this issue 6 years ago • 4 comments

This has come up in a few other issues, but addressing it seems to be non trivial. The main pain points:

  • The treeview starts by doing a query for all packages recursively. It would be nice if there was a way to do this progressively (like it does for targets within a package), but there doesn't seem to be a way to limit the depth of the package query.
  • There is no sharing of data between the treeview and quickpicks. If there was some "model" behind the scenes, then the quickpicks wouldn't have to issue queries if the model already had the data. There are a few complications though:
    • The treeview can progressively load targets as the tree is expanded, but for the quickpicks, that doesn't work as well, so the quickpicks would need some decisions about how to let the users progressively expand things.
    • Once data starts to be cached, how do things "refresh" when BUILD files are edited/added?

thomasvl avatar Dec 11 '19 18:12 thomasvl

Thanks for providing this! Unfortunately, I'm finding the extension nearly unusable with my team's repo, AFAICT, due to its automatic querying. I frequently have to wait for this when running bazel on the command line:

Another command (pid=....) is running.  Waiting for it to complete on the server...

What about just having a settings toggle for disabling populating the "Bazel Build Targets" pane?

joshburkart avatar Mar 11 '20 01:03 joshburkart

https://github.com/bazelbuild/vscode-bazel/pull/138 already provides a setting. It just hasn't been included in a release.

thomasvl avatar Mar 11 '20 14:03 thomasvl

Ah okay great. Thanks!

Edit: In case it's useful to anyone, as a temporary workaround, I set the bazel.executable setting to a bogus path.

joshburkart avatar Mar 11 '20 15:03 joshburkart

Maybe, implementing support for *.bazelproject files might also help here. Not sure, I don't work on large monorepos myself

vogelsgesang avatar Apr 06 '24 20:04 vogelsgesang