Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inline Diagnostics Multi-Line Errors #60013

Merged
merged 1 commit into from
Mar 8, 2022

Conversation

akhera99
Copy link
Member

@akhera99 akhera99 commented Mar 7, 2022

Fixes: AB#1486913

I made an earlier PR (#58398) to look at the ending span location to draw the tag in the correct location. I did not also edit what creates the mapping of line number to tag to use the span end, which is why we were seeing multiple tags on the same line.

/// <summary>
/// Get the spans located on each line so that it can only display the first one that appears on the line
/// </summary>
private void AddSpansOnEachLine(NormalizedSnapshotSpanCollection changedSpanCollection,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this change just moving the method? Can you undo if that's the only change to this file?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah I just moved the method since it should've been below the calling method. Do I need to create a separate PR for that?

@akhera99 akhera99 merged commit debd4e4 into dotnet:main Mar 8, 2022
@ghost ghost added this to the Next milestone Mar 8, 2022
@allisonchou allisonchou modified the milestones: Next, 17.2.P3 Mar 28, 2022
@akhera99 akhera99 deleted the bugs/1486913_inline_diagnostics branch June 18, 2024 20:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants