-
Notifications
You must be signed in to change notification settings - Fork 4k
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: Fix conflicting diagnostics and general code cleanup #60468
Inline Diagnostics: Fix conflicting diagnostics and general code cleanup #60468
Conversation
@@ -284,7 +284,7 @@ protected bool ShouldDrawTag(SnapshotSpan snapshotSpan, IMappingTagSpan<T> mappi | |||
} | |||
|
|||
var mappedPoint = TextView.BufferGraph.MapUpToSnapshot( | |||
point.Value, PointTrackingMode.Negative, PositionAffinity.Predecessor, TextView.VisualSnapshot); | |||
point.Value, PointTrackingMode.Negative, PositionAffinity.Predecessor, TextView.TextSnapshot); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because I am curious, what is the difference between these?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not quite sure what the difference is to be honest, but I did MapUpToSnapshot earlier in the file as well and I used the TextSnapshot. This was just to keep consistency because I don't think I used the VisualSnapshot for a particular reason.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you make sure that if you scroll these off screen that they disappear (debugging through to amek sure that happens would be good too).
var graphicsResult = tag.GetGraphics(TextView, geometry, GetFormat(classificationType)); | ||
|
||
// Pass in null! because the geometry is unused for drawing anything for Inline Diagnostics | ||
var graphicsResult = tag.GetGraphics(TextView, null!, GetFormat(classificationType)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
var graphicsResult = tag.GetGraphics(TextView, null!, GetFormat(classificationType)); | |
var graphicsResult = tag.GetGraphics(TextView, unused: null!, GetFormat(classificationType)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
No description provided.