Skip to content

Commit

Permalink
Add cocs
Browse files Browse the repository at this point in the history
  • Loading branch information
CyrusNajmabadi committed Dec 19, 2024
1 parent b99876e commit f8b24a5
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,10 @@ internal sealed class CSharpInlineTypeHintsService() : AbstractInlineTypeHintsSe
return null;

string GetTypeDisplayString(ITypeSymbol type)
// ToMinimalDisplayString will produce the smallest name for this type that should compile at the specified
// location in this tree. We want that over ToDisplayString as that will produce the most readable name,
// which isn't necessarily something that will compile (for example, if needed namespaces are missing from
// the name).
=> type.ToMinimalDisplayString(semanticModel, node.SpanStart, s_minimalTypeStyle);

TypeHint CreateTypeHint(
Expand Down

0 comments on commit f8b24a5

Please sign in to comment.