-
-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: shortcut to jump to BUILD or BUILD.bazel file #353
Comments
I found this because I was just going to open the same feature request! Not sure if I should open a separate request, but the inverse would be nice too, where you could "goto" source file from the |
Seems similar to #178, but with the added bonus of jumping to the target, not just the nearest BUILD file. |
Oops you're right! |
Perhaps we should leave them both open until we get an official response from the core developers? They're slightly different requests. Not sure if that matters. |
I'd be interested in implementing both of these, if that's okay with the maintainers. |
Thanks for that offer and for your first Pull Request, @kchodorow 🚀 I already replied in the pull request regarding the "go from a BUILD file to the referenced source file" functionality. On a related note: I think having a "keep focus in sync with active editor" option for the Bazel Build Targets tree view would be pretty neat. I.e., whenever the currently active file in the editor is changed, the tree view is focused on the package of the currently edited file. Not sure if this is even possible with the APIs exposed by Visual Studio Code, though... |
Thanks! Source code -> build target is in progress (although probably dependent on the same StarLark/bazel query factors as the first PR).
Interesting, that sounds useful! I'll take a look at what's available and let you know. |
I primarily work on a mixed C++ and Python monorepo. I frequently find myself editing say a
.cc
file and wanting to jump to its correspondingBUILD
file (in the same package). Is there a command to which I can assign a shortcut?srcs
orhdrs
.The text was updated successfully, but these errors were encountered: