Skip to content

Commit 2785754

Browse files
MartinGC94JustinGrote
authored andcommittedNov 2, 2024
Fix test
1 parent dcf642b commit 2785754

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
 

‎test/PowerShellEditorServices.Test/Language/SemanticTokenTest.cs

+5-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,11 @@ function Get-A*A {
114114
Assert.Single(mappedTokens, sToken => SemanticTokenType.Keyword == sToken.Type);
115115
break;
116116
case "Get-A*A":
117-
Assert.Single(mappedTokens, sToken => SemanticTokenType.Function == sToken.Type);
117+
if (t.TokenFlags.HasFlag(TokenFlags.CommandName))
118+
{
119+
Assert.Single(mappedTokens, sToken => SemanticTokenType.Function == sToken.Type);
120+
}
121+
118122
break;
119123
}
120124
}

0 commit comments

Comments
 (0)