Project item conflict diagnostics through enclosing scopes

This commit is contained in:
2026-10-17 04:54:01 +00:00
parent 023e428b9c
commit 8e3a0892d4
4 changed files with 127 additions and 10 deletions

View File

@@ -175,7 +175,7 @@ func acquireUnderlayGroupWithPolicyVersion(group loadGroup, index int, rule *Ver
}
mergeResourceContexts(&contexts, acquired.contexts)
if len(diagnostics) != 0 {
return nil, sources, contexts, diagnostics
return nil, sources, contexts, projectPriorInputDiagnosticPaths(diagnostics, scopes)
}
if acquired.document == nil {
continue