未验证 提交 26f7e97a 编写于 作者: D David 提交者: GitHub

Merge pull request #39460 from dotnet/merges/master-to-master-vs-deps

Merge master to master-vs-deps
......@@ -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.
先完成此消息的编辑!
想要评论请 注册