From 35b0a04d1d99da97886986f765e01fb7e53bcc5b Mon Sep 17 00:00:00 2001 From: akhera99 Date: Fri, 17 Dec 2021 14:05:07 -0800 Subject: [PATCH] use the end of the span instead of the start to determine line position --- .../InlineDiagnostics/InlineDiagnosticsAdornmentManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/EditorFeatures/Core.Wpf/InlineDiagnostics/InlineDiagnosticsAdornmentManager.cs b/src/EditorFeatures/Core.Wpf/InlineDiagnostics/InlineDiagnosticsAdornmentManager.cs index 97ce478c2c1e3..929e599b576bb 100644 --- a/src/EditorFeatures/Core.Wpf/InlineDiagnostics/InlineDiagnosticsAdornmentManager.cs +++ b/src/EditorFeatures/Core.Wpf/InlineDiagnostics/InlineDiagnosticsAdornmentManager.cs @@ -189,7 +189,7 @@ protected override void AddAdornmentsToAdornmentLayer_CallOnlyOnUIThread(Normali } // Need to get the SnapshotPoint to be able to get the IWpfTextViewLine - var point = tagMappingSpan.Span.Start.GetPoint(TextView.TextSnapshot, PositionAffinity.Predecessor); + var point = tagMappingSpan.Span.End.GetPoint(TextView.TextSnapshot, PositionAffinity.Predecessor); if (point == null) { continue;