提交 05ac9b37 编写于 作者: R Ravi Chande

Fix DevDiv #433619

Because completion asynchronously computes descriptions, the default
text is "...". In order to present the description when available, we
have to set the AutomationProperties.Name on our tooltip UIElement.
上级 3f35adf5
......@@ -17,6 +17,7 @@
using Microsoft.VisualStudio.Text.Classification;
using Microsoft.VisualStudio.Utilities;
using VSCompletion = Microsoft.VisualStudio.Language.Intellisense.Completion;
using System.Windows.Automation;
namespace Microsoft.CodeAnalysis.Editor.Implementation.IntelliSense.Completion.Presentation
{
......@@ -89,6 +90,11 @@ private void ProcessDescription(Task<CompletionDescription> obj)
var description = obj.Result;
this.Content = GetTextBlock(description.TaggedParts, _toolTipProvider._typeMap);
// As of https://devdiv.visualstudio.com/DevDiv/_git/VS/pullrequest/67974?_a=overview
// the editor will pull AutomationProperties.Name from our UIElement and expose
// to automation.
AutomationProperties.SetName(this, description.Text);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册