Skip to content

Inline Diagnostics Multi-Line Errors#60013

Merged
akhera99 merged 1 commit into
dotnet:mainfrom
akhera99:bugs/1486913_inline_diagnostics
Mar 8, 2022
Merged

Inline Diagnostics Multi-Line Errors#60013
akhera99 merged 1 commit into
dotnet:mainfrom
akhera99:bugs/1486913_inline_diagnostics

Conversation

@akhera99
Copy link
Copy Markdown
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.

@akhera99 akhera99 requested review from ryzngard and sharwell March 7, 2022 22:48
@akhera99 akhera99 requested a review from a team as a code owner March 7, 2022 22:48
@akhera99 akhera99 requested a review from a team March 7, 2022 22:48
@ghost ghost added the Area-IDE label Mar 7, 2022
/// <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
Copy Markdown
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
Copy Markdown
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