提交 a4cd14ee 编写于 作者: C CyrusNajmabadi

Update tests.

上级 2fa7b6e8
......@@ -51,7 +51,7 @@ Namespace Microsoft.CodeAnalysis.Editor.UnitTests.IntelliSense
Dim helper = CompletionHelper.GetHelper(workspace, LanguageNames.CSharp)
For Each word In wordsToMatch
Dim item = CompletionItem.Create(word)
Assert.True(helper.MatchesFilterText(item, v, culture), $"Expected item {word} does not match {v}")
Assert.True(helper.MatchesPattern(item.FilterText, v, culture), $"Expected item {word} does not match {v}")
Next
End Sub
......@@ -61,7 +61,7 @@ Namespace Microsoft.CodeAnalysis.Editor.UnitTests.IntelliSense
Dim helper = CompletionHelper.GetHelper(workspace, LanguageNames.CSharp)
For Each word In wordsToNotMatch
Dim item = CompletionItem.Create(word)
Assert.False(helper.MatchesFilterText(item, v, culture), $"Unexpected item {word} matches {v}")
Assert.False(helper.MatchesPattern(item.FilterText, v, culture), $"Unexpected item {word} matches {v}")
Next
End Sub
End Class
......
......@@ -50,7 +50,6 @@ public static CompletionHelper GetHelper(Document document)
public ImmutableArray<TextSpan> GetHighlightedSpans(
string text, string pattern, CultureInfo culture)
{
// Use the display text of the completion item
var match = GetMatch(text, pattern, includeMatchSpans: true, culture: culture);
return match == null ? ImmutableArray<TextSpan>.Empty : match.Value.MatchedSpans;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册