Skip to content

Commit 3e0ee90

Browse files
bergmeisterTylerLeonhardt
authored andcommitted
Use case insensitive dictionary for Pester keyword lookup so that code lens shows when using lower cased describe keyword (#823)
1 parent c7de2aa commit 3e0ee90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PowerShellEditorServices/Symbols/PesterDocumentSymbolProvider.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ public class PesterSymbolReference : SymbolReference
166166
internal static readonly IReadOnlyDictionary<string, PesterCommandType> PesterKeywords =
167167
Enum.GetValues(typeof(PesterCommandType))
168168
.Cast<PesterCommandType>()
169-
.ToDictionary(pct => pct.ToString(), pct => pct);
169+
.ToDictionary(pct => pct.ToString(), pct => pct, StringComparer.OrdinalIgnoreCase);
170170

171171
private static char[] DefinitionTrimChars = new char[] { ' ', '{' };
172172

0 commit comments

Comments
 (0)