Preserve composition conflict claimant order
This commit is contained in:
@@ -88,7 +88,9 @@ func (a *diagnosticAccumulator) loadError() *LoadError {
|
||||
func canonicalDiagnostics(diagnostics []Diagnostic) []Diagnostic {
|
||||
canonical := cloneDiagnostics(diagnostics)
|
||||
for i := range canonical {
|
||||
slices.SortFunc(canonical[i].Related, compareLocation)
|
||||
if canonical[i].Code != CodeComposeConflict {
|
||||
slices.SortFunc(canonical[i].Related, compareLocation)
|
||||
}
|
||||
}
|
||||
type orderedDiagnostic struct {
|
||||
diagnostic Diagnostic
|
||||
|
||||
Reference in New Issue
Block a user