Skip to content
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

fix: Add a welcome view to the Bazel Build Targets tree view #372

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,14 @@
"when": "bazel.haveWorkspace"
}
]
}
},
"viewsWelcome": [
{
"view": "bazelWorkspace",
"contents": "No Bazel targets found.\n[Refresh Target List](command:bazel.refreshBazelBuildTargets)",
"when": "bazel.haveWorkspace"
}
]
},
"scripts": {
"check-lint": "eslint .",
Expand Down
2 changes: 1 addition & 1 deletion src/bazel/bazel_utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ function shouldIgnorePath(fsPath: string): boolean {
* Search for the path to the directory that has the Bazel WORKSPACE file for
* the given file.
*
* If multiple directories along the path to the file has files called
* If multiple directories along the path to the file have files called
* "WORKSPACE", the lowest path is returned.
*
* @param fsPath The path to a file in a Bazel workspace.
Expand Down