提交 ff59ca3e 编写于 作者: C CyrusNajmabadi

Support completion items with no Glyphs (for JavaScript).

上级 f93cffec
......@@ -31,7 +31,7 @@ public FailureInlineRenameInfo(string localizedErrorMessage)
public string FullDisplayName { get { return null; } }
public Glyph Glyph { get { return default(Glyph); } }
public Glyph Glyph => Glyph.None;
public string GetFinalSymbolName(string replacementText) { return null; }
......
......@@ -87,13 +87,7 @@ public string GetDescription_TestingOnly()
return GetDescriptionAsync(CancellationToken.None).WaitAndGetResult(CancellationToken.None).Text;
}
public override ImageMoniker IconMoniker
{
get
{
return _imageMoniker;
}
}
public override ImageMoniker IconMoniker => _imageMoniker;
public override string IconAutomationText
{
......
......@@ -220,6 +220,9 @@ public static ImageMoniker GetImageMoniker(this Glyph glyph)
{
switch (glyph)
{
case Glyph.None:
return default(ImageMoniker);
case Glyph.Assembly:
return KnownMonikers.Assembly;
......@@ -638,7 +641,7 @@ public static Glyph GetGlyph(this ImmutableArray<string> tags)
}
}
return default(Glyph);
return Glyph.None;
}
private static Accessibility GetAccessibility(ImmutableArray<string> tags)
......
......@@ -4,6 +4,8 @@ namespace Microsoft.CodeAnalysis
{
internal enum Glyph
{
None,
Assembly,
BasicFile,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册