Skip to content

Commit

Permalink
Fix setting _tagSpan.
Browse files Browse the repository at this point in the history
Was removed by mistake in #113, causing errors to not be removed.
  • Loading branch information
grokys committed Dec 16, 2019
1 parent 285ff3d commit 9f412c1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions AvaloniaVS/IntelliSense/XamlErrorTagger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,12 @@ public void Dispose()
public IEnumerable<ITagSpan<IErrorTag>> GetTags(NormalizedSnapshotSpanCollection spans)
{
var result = GetErrorTag(spans);

if (result != null)
{
_tagSpan = result;
}

return result != null ? new[] { result } : Array.Empty<ITagSpan<IErrorTag>>();
}

Expand Down

0 comments on commit 9f412c1

Please sign in to comment.