Select history using matched entry positions

This commit is contained in:
2026-11-02 14:49:32 +00:00
parent 4549fbaeef
commit 151b56e7ec
4 changed files with 98 additions and 18 deletions

View File

@@ -262,13 +262,6 @@ func metadataFieldLocation(metadata Metadata, path Path, origin Origin) (documen
return location, true
}
if model := metadata.historyEvidence(); model != nil {
if model.resolutionPayload != nil {
var matched bool
path, matched = model.resolutionPayload.correspondence.entryPath(path)
if !matched {
return document.Location{}, false
}
}
location, ok := model.latestHistoricalLocation(path)
if ok {
return document.Location{SourceID: location.SourceID, Line: location.Line, Column: location.Column}, true