feat(completion): add queryScope config to scope completion target query#599
feat(completion): add queryScope config to scope completion target query#599runchen0919 wants to merge 2 commits into
Conversation
Add `bazel.completion.queryScope` setting (string array) that limits the Bazel query used by the completion provider to specific package patterns (e.g. `["//src/...", "//lib/..."]`), instead of always querying the entire workspace.
|
Thank you very much for your first contribution @runchen0919 ! Conceptually though, I am sorry to say that I am not really in favor of this change. The second reason is, that I am actually planning to remove the code that you have touched entirely, once the extension bundles a LSP directly. See also this comment: #1 (comment) |
Hi, @cbandera Thank you for your reply. Let me explain the problem I encountered. My current project is a multi-language project managed by Bazel, including Python, Java, Go, and some code templates, etc. The code structure is as follows. In reality, as developers, we might only be concerned with the code in a specific directory, not scanning all targets in the root directory. There might be some problematic Bazel files in the code templates, causing the refresh function to encounter errors when scanning from the root directory. |
Description
Add
bazel.completion.queryScopesetting (string array) that limits the Bazel query used by the completion provider to specific package patterns (e.g.["//src/...", "//lib/..."]), instead of always querying the entire workspace.Related Issue
#598
Testing
Checklist
npm run test)