-
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
Fix graying out of unused members in LSP #74589
Conversation
@sharwell i cna't seem to figure out how to update the tests to pass. they seem to eb validating spans in strange ways. |
@@ -3176,8 +3176,8 @@ class C | |||
private C(int i) { } |
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.
private C(int i) { } | |
{|#0:private C(int i) { }|} |
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.
that doesn't seem to help.
// /0/Test0.cs(3,13): info IDE0051: Private member 'C.C' is unused | ||
VerifyCS.Diagnostic("IDE0051").WithSpan(3, 13, 3, 14).WithArguments("C.C")); | ||
// /0/Test0.cs(3,13): info IDE0051: Private member 'C.C' is unused | ||
VerifyCS.Diagnostic("IDE0051").WithSpan(3, 5, 3, 25).WithArguments("C.C")); |
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.
VerifyCS.Diagnostic("IDE0051").WithSpan(3, 5, 3, 25).WithArguments("C.C")); | |
VerifyCS.Diagnostic("IDE0051").WithLocation(0).WithArguments("C.C")); |
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.
that doesn't seem to fix things.
Fixes https://devdiv.visualstudio.com/DevDiv/_queries/edit/2086491