Skip to content

Commit

Permalink
handle multi-nested types
Browse files Browse the repository at this point in the history
  • Loading branch information
bryankenote committed Oct 11, 2023
1 parent 4f8de20 commit b2f1e47
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Facility.LanguageServer/FsdDefinitionUtility.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,11 @@ private static string GetMemberTypeName(this ServiceTypeInfo type)
private static string GetFieldTypeName(this ServiceInfo service, ServiceFieldInfo field)
{
var type = service.GetFieldType(field);
return type?.ValueType?.ToString() ?? type?.ToString() ?? field.TypeName;

while (type?.ValueType is { } valueType)
type = valueType;

return type?.ToString() ?? field.TypeName;
}
}
}

0 comments on commit b2f1e47

Please sign in to comment.