提交 93723e2a 编写于 作者: C CyrusNajmabadi

Include the type when showing the error message.

上级 20347f68
......@@ -159,7 +159,7 @@ internal static class DefinitionItemExtensions
HashSet<DocumentSpan> uniqueSpans = null)
{
var displayParts = definition.ToDisplayParts(GetFormat(definition)).ToTaggedText();
var nameDisplayParts = definition.ToDisplayParts(s_nameOnlyFormat).ToTaggedText();
var nameDisplayParts = definition.ToDisplayParts(s_namePartsFormat).ToTaggedText();
var tags = GlyphTags.GetTags(definition.GetGlyph());
var displayIfNoReferences = definition.ShouldShowWithNoReferenceLocations(
......@@ -249,7 +249,8 @@ private static SymbolDisplayFormat GetFormat(ISymbol definition)
: s_definitionFormat;
}
private static readonly SymbolDisplayFormat s_nameOnlyFormat = new SymbolDisplayFormat();
private static readonly SymbolDisplayFormat s_namePartsFormat = new SymbolDisplayFormat(
memberOptions: SymbolDisplayMemberOptions.IncludeContainingType);
private static readonly SymbolDisplayFormat s_definitionFormat =
new SymbolDisplayFormat(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册