未验证 提交 f52a24a0 编写于 作者: I Ivan Basov 提交者: GitHub

Merge pull request #39455 from uniqueiniquity/preferredCompletionItem

Handle intellicode star in display text prefix
......@@ -139,8 +139,10 @@ internal static bool TryGetInitialTriggerLocation(VSCompletionItem item, out Sna
// This is a temporarily method to support preference of IntelliCode items comparing to non-IntelliCode items.
// We expect that Editor will introduce this support and we will get rid of relying on the "★" then.
// We check both the display text and the display text prefix to account for IntelliCode item providers
// that may be using the prefix to include the ★.
internal static bool IsPreferredItem(this RoslynCompletionItem completionItem)
=> completionItem.DisplayText.StartsWith("★");
=> completionItem.DisplayText.StartsWith("★") || completionItem.DisplayTextPrefix.StartsWith("★");
// This is a temporarily method to support preference of IntelliCode items comparing to non-IntelliCode items.
// We expect that Editor will introduce this support and we will get rid of relying on the "★" then.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册