We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef02c07 commit 3e85c6aCopy full SHA for 3e85c6a
src/Features/Core/Portable/Common/GlyphExtensions.cs
@@ -29,11 +29,14 @@ public static ImmutableArray<Glyph> GetGlyphs(this ImmutableArray<string> tags)
29
30
public static Glyph GetFirstGlyph(this ImmutableArray<string> tags)
31
{
32
- var glyphs = GetGlyphs(tags);
+ foreach (var tag in tags)
33
+ {
34
+ var glyph = GetGlyph(tag, tags);
35
+ if (glyph != Glyph.None)
36
+ return glyph;
37
+ }
38
- return !glyphs.IsEmpty
- ? glyphs[0]
- : Glyph.None;
39
+ return Glyph.None;
40
}
41
42
private static Glyph GetGlyph(string tag, ImmutableArray<string> allTags)
0 commit comments