bazel-contrib / bazel-contrib/vscode-bazel
Extension cannot find bazel root without a WORKSPACE file
Open
type: bug
- Dominant language
- TypeScript
- Stars
- 296
- Forks
- 108
- Avg merge
- 3d 22h
- Merged PRs (30d)
- 5
Description
In pure bzlmod projects where there is no WORKSPACE file, the extension cannot find the root of the project and all paths become absolute as seen in the screenshot below. Is this intended?

Contributor guide
Research direction
Start by reproducing the issue in a pure bzlmod project without a WORKSPACE file, then trace how the extension determines the Bazel project root. Done means the root is found in this setup and displayed paths remain project-relative rather than becoming absolute.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, vscode
- Domain
- build-system, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 32/100