Skip to content

Commit

Permalink
Fix remaining navigation issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ElektroKill committed Jun 17, 2023
1 parent 02d7a63 commit 37fb18b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions dnSpy/dnSpy/Documents/DsDocumentService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,13 @@ static AssemblyNameComparerFlags ToAssemblyNameComparerFlags(FindAssemblyOptions
foreach (var info in documents) {
if (comparer.Equals(info.Document.AssemblyDef, assembly))
return info.Document;

if (info.Document is DsBundleDocument) {
foreach (var documentChild in info.Document.Children) {
if (comparer.Equals(documentChild.AssemblyDef, assembly))
return documentChild;
}
}
}
foreach (var info in documents) {
if (info.IsAlternativeAssemblyName(assembly))
Expand Down Expand Up @@ -224,6 +231,13 @@ DocumentInfo Find_NoLock(IDsDocumentNameKey key) {
foreach (var info in documents) {
if (key.Equals(info.Document.Key))
return info;

if (info.Document is DsBundleDocument) {
foreach (var documentChild in info.Document.Children) {
if (key.Equals(documentChild.Key))
return new DocumentInfo(documentChild);
}
}
}
return default;
}
Expand Down

0 comments on commit 37fb18b

Please sign in to comment.