Skip to content

Commit

Permalink
support *.BUILD.bazel files (#269)
Browse files Browse the repository at this point in the history
  • Loading branch information
withered-magic committed Jul 3, 2024
1 parent 7123709 commit 538d55b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/starpls/src/document.rs
Original file line number Diff line number Diff line change
Expand Up @@ -736,6 +736,7 @@ pub(crate) fn dialect_and_api_context_for_workspace_path(
"WORKSPACE" | "WORKSPACE.bazel" | "WORKSPACE.bzlmod" => {
(Dialect::Bazel, Some(APIContext::Workspace))
}
path if path.ends_with(".BUILD.bazel") => (Dialect::Bazel, Some(APIContext::Build)),
_ => match path.extension().and_then(|ext| ext.to_str()) {
Some("bzl") => (Dialect::Bazel, Some(APIContext::Bzl)),
_ => {
Expand Down

0 comments on commit 538d55b

Please sign in to comment.