提交 43c873fa 编写于 作者: A Ankita Khera

Made some minor changes so that the hint is associated with the prior character

上级 5a928ed5
......@@ -21,11 +21,11 @@ internal class InlineParameterNameHintsTag : IntraTextAdornmentTag
/// <summary>
/// Creates the UIElement on call
/// Uses PositionAffinity.Successor because we want the tag to be associated with the following character
/// Uses PositionAffinity.Predecessor because we want the tag to be associated with the preceding character
/// </summary>
/// <param name="text">The name of the parameter associated with the argument</param>
public InlineParameterNameHintsTag(string text, double lineHeight, TextFormattingRunProperties format)
: base(CreateElement(text, lineHeight, format), removalCallback: null, PositionAffinity.Successor)
: base(CreateElement(text, lineHeight, format), removalCallback: null, PositionAffinity.Predecessor)
{
}
......
......@@ -38,6 +38,7 @@ internal class InlineParameterNameHintsDataTaggerProvider : AsynchronousViewTagg
private readonly IAsynchronousOperationListener _listener;
protected override IEnumerable<PerLanguageOption2<bool>> PerLanguageOptions => SpecializedCollections.SingletonEnumerable(FeatureOnOffOptions.InlineParameterNameHints);
protected override SpanTrackingMode SpanTrackingMode => SpanTrackingMode.EdgeInclusive;
[Obsolete(MefConstruction.ImportingConstructorMessage, error: true)]
[ImportingConstructor]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册