-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Merged
+217
−147
Merged
Changes from 5 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
c819529
In progress
CyrusNajmabadi 805992c
Properly gray out
CyrusNajmabadi bab6263
fix
CyrusNajmabadi 6dbaa4e
Share code
CyrusNajmabadi 6a91190
Tests
CyrusNajmabadi 0c143a8
in progress
CyrusNajmabadi dd84012
tests
CyrusNajmabadi 2d8a12c
tests
CyrusNajmabadi 4f782a0
tests
CyrusNajmabadi 34b8b31
tests
CyrusNajmabadi cd7c5ed
update
CyrusNajmabadi 9cb5580
trying other stuff
CyrusNajmabadi fd3edc1
fix tests
CyrusNajmabadi 21c29e4
Rename
CyrusNajmabadi 74e6730
Apply suggestions from code review
CyrusNajmabadi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -1745,7 +1745,7 @@ class MyClass | |||||
} | ||||||
|
||||||
[Fact, WorkItem("https://github.com/dotnet/roslyn/issues/43191")] | ||||||
public async Task PropertyIsIncrementedAndValueDropped_VerifyAnalizerMessage() | ||||||
public async Task PropertyIsIncrementedAndValueDropped_VerifyAnalyzerMessage() | ||||||
{ | ||||||
var code = """ | ||||||
class MyClass | ||||||
|
@@ -1805,7 +1805,7 @@ class MyClass | |||||
} | ||||||
|
||||||
[Fact, WorkItem("https://github.com/dotnet/roslyn/issues/43191")] | ||||||
public async Task IndexerIsIncrementedAndValueDropped_VerifyAnalizerMessage() | ||||||
public async Task IndexerIsIncrementedAndValueDropped_VerifyAnalyzerMessage() | ||||||
{ | ||||||
var code = """ | ||||||
class MyClass | ||||||
|
@@ -3176,8 +3176,8 @@ class C | |||||
private C(int i) { } | ||||||
} | ||||||
""", | ||||||
// /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 commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. that doesn't seem to fix things. |
||||||
} | ||||||
|
||||||
[Fact, WorkItem("https://github.com/dotnet/roslyn/issues/62856")] | ||||||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
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.