-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Refactoring to add DebuggerDisplay #38090
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
Refactoring to add DebuggerDisplay #38090
Conversation
|
LMK if/when you want review. |
|
Blocked on the design review in #37990 |
...atures/CSharp/Portable/AddDebuggerDisplay/CSharpAddDebuggerDisplayCodeRefactoringProvider.cs
Outdated
Show resolved
Hide resolved
...atures/CSharp/Portable/AddDebuggerDisplay/CSharpAddDebuggerDisplayCodeRefactoringProvider.cs
Outdated
Show resolved
Hide resolved
...atures/Core/Portable/AddDebuggerDisplay/AbstractAddDebuggerDisplayCodeRefactoringProvider.cs
Outdated
Show resolved
Hide resolved
...atures/Core/Portable/AddDebuggerDisplay/AbstractAddDebuggerDisplayCodeRefactoringProvider.cs
Outdated
Show resolved
Hide resolved
...atures/Core/Portable/AddDebuggerDisplay/AbstractAddDebuggerDisplayCodeRefactoringProvider.cs
Outdated
Show resolved
Hide resolved
...atures/Core/Portable/AddDebuggerDisplay/AbstractAddDebuggerDisplayCodeRefactoringProvider.cs
Outdated
Show resolved
Hide resolved
...atures/Core/Portable/AddDebuggerDisplay/AbstractAddDebuggerDisplayCodeRefactoringProvider.cs
Outdated
Show resolved
Hide resolved
...atures/Core/Portable/AddDebuggerDisplay/AbstractAddDebuggerDisplayCodeRefactoringProvider.cs
Outdated
Show resolved
Hide resolved
...atures/Core/Portable/AddDebuggerDisplay/AbstractAddDebuggerDisplayCodeRefactoringProvider.cs
Outdated
Show resolved
Hide resolved
a68008d to
cf6e310
Compare
ce111d7 to
b027a8e
Compare
49e0a53 to
2894067
Compare
|
Resolved review comments, updated to match the design spec. Ready for review! @sharwell I broke something... all I did was click the refresh icon next to Cyrus's review: |
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.
💭 This doesn't seem like an ideal place to add it.
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.
My thinking was that this normally occurs to me right after I implement ToString, but I'm happy to remove it.
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.
On further thought, the three places I could see this relevant are:
- The type name token (low priority)
- The signature of
ToString()(low priority) - The signature of
GetDebuggerDisplay()(normal priority, or potentially even with a diagnostic analyzer)
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 can do that. What's the rationale on having it available on the type name token but not the beginning of the line?
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.
@sharwell I think I'd like to be able to invoke this at the beginning of the line. What do you think about that?
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.
@jnm2 did you implement this?
src/EditorFeatures/CSharpTest/AddDebuggerDisplay/AddDebuggerDisplayTests.cs
Outdated
Show resolved
Hide resolved
2397a07 to
e16026b
Compare
|
📝 I verified commit e16026b is accurate with respect to the originally-reviewed code. |
|
(Thanks btw, I'll merge next time!) |
|
Fixed merge conflicts with a merge commit. It has been five months since there was any feedback on the PR. There are two approvals. Is there anything I can do to clear the way for this to be merged? This is a feature that I miss on a weekly basis. |
|
I'll buddy this. |
src/EditorFeatures/CSharpTest/AddDebuggerDisplay/AddDebuggerDisplayTests.cs
Outdated
Show resolved
Hide resolved
...atures/CSharp/Portable/AddDebuggerDisplay/CSharpAddDebuggerDisplayCodeRefactoringProvider.cs
Outdated
Show resolved
Hide resolved
...atures/Core/Portable/AddDebuggerDisplay/AbstractAddDebuggerDisplayCodeRefactoringProvider.cs
Outdated
Show resolved
Hide resolved
...atures/Core/Portable/AddDebuggerDisplay/AbstractAddDebuggerDisplayCodeRefactoringProvider.cs
Outdated
Show resolved
Hide resolved
...atures/Core/Portable/AddDebuggerDisplay/AbstractAddDebuggerDisplayCodeRefactoringProvider.cs
Outdated
Show resolved
Hide resolved
...atures/Core/Portable/AddDebuggerDisplay/AbstractAddDebuggerDisplayCodeRefactoringProvider.cs
Outdated
Show resolved
Hide resolved
...atures/Core/Portable/AddDebuggerDisplay/AbstractAddDebuggerDisplayCodeRefactoringProvider.cs
Outdated
Show resolved
Hide resolved
...atures/Core/Portable/AddDebuggerDisplay/AbstractAddDebuggerDisplayCodeRefactoringProvider.cs
Show resolved
Hide resolved
...atures/Core/Portable/AddDebuggerDisplay/AbstractAddDebuggerDisplayCodeRefactoringProvider.cs
Show resolved
Hide resolved
...atures/Core/Portable/AddDebuggerDisplay/AbstractAddDebuggerDisplayCodeRefactoringProvider.cs
Outdated
Show resolved
Hide resolved
...atures/Core/Portable/AddDebuggerDisplay/AbstractAddDebuggerDisplayCodeRefactoringProvider.cs
Outdated
Show resolved
Hide resolved
|
Thanks! |

Closes #37990