-
Notifications
You must be signed in to change notification settings - Fork 221
Improve debugging tooltip support #11877
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
Improve debugging tooltip support #11877
Conversation
Implement textdocument/_vs_dataTipRange lsp message which allows the vs debugger to better handle showing tooltips for the returned ranges. This is my first PR into razor since joining the team, so I'm expecting/hoping for lots of feedback about these changes as I'm still getting really early into getting a feel for the codebase. The change is fairly simple, and just adds a new endpoint for _vs_dataTipRange, and forwards the request to the csharp lsp implementation, extending AbstractRazorDelegatingEndpoint to hook into the existing delegating infrastructure.
...Razor/src/Microsoft.AspNetCore.Razor.LanguageServer/Debugging/DataTipRangeHandlerEndpoint.cs
Show resolved
Hide resolved
src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Protocol/DelegatedTypes.cs
Outdated
Show resolved
Hide resolved
alexgav
left a comment
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.
🕐
alexgav
left a comment
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.
![]()
wasn't requesting changes, clicked on the wrong choice by accident. Code looks great to me. |
src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Protocol/DelegatedTypes.cs
Outdated
Show resolved
Hide resolved
…tatiprange 2) Seal a couple classes I added
|
Awesome, thank you so much @ToddGrun and team for all that you do out there. 🙏 |
Fixes dotnet#11880 This is a port of the non-cohosting support for this message done in dotnet#11877 Needed a Roslyn package update to at least 5.3.0-2.25555.17 to include dotnet/roslyn#81033. Roslyn has inserted this change into VS main, and the latest VS Main install includes the Roslyn side of this change.
* Port dataTipRange support to cohosting Fixes #11880 This is a port of the non-cohosting support for this message done in #11877 Needed a Roslyn package update to at least 5.3.0-2.25555.17 to include dotnet/roslyn#81033. Roslyn has inserted this change into VS main, and the latest VS Main install includes the Roslyn side of this change.
Implement textdocument/_vs_dataTipRange lsp message which allows the vs debugger to better handle showing tooltips for the returned ranges.
This is my first PR into razor since joining the team, so I'm expecting/hoping for lots of feedback about these changes as I'm still just getting a feel for the codebase. This change is fairly simple, adding a new endpoint for _vs_dataTipRange, and forwarding the request to the csharp lsp implementation. AbstractRazorDelegatingEndpoint is extended to hook into the existing delegating infrastructure.
Fixes #6688, https://devdiv.visualstudio.com/DevDiv/_workitems/edit/2459195