Skip to content

Conversation

@ToddGrun
Copy link
Contributor

@ToddGrun ToddGrun commented May 21, 2025

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

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.
@ToddGrun ToddGrun requested a review from a team as a code owner May 21, 2025 21:32
Copy link
Contributor

@alexgav alexgav left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🕐

Copy link
Contributor

@alexgav alexgav left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@alexgav
Copy link
Contributor

alexgav commented May 21, 2025

🕐

wasn't requesting changes, clicked on the wrong choice by accident. Code looks great to me.

@ToddGrun ToddGrun merged commit 18d80b9 into dotnet:main May 22, 2025
11 checks passed
@dotnet-policy-service dotnet-policy-service bot added this to the Next milestone May 22, 2025
@Mike-E-angelo
Copy link

Awesome, thank you so much @ToddGrun and team for all that you do out there. 🙏

@RikkiGibson RikkiGibson modified the milestones: Next, 18.0 P1 Aug 20, 2025
ToddGrun added a commit to ToddGrun/razor that referenced this pull request Nov 6, 2025
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.
ToddGrun added a commit that referenced this pull request Nov 6, 2025
* 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

debugging in blazor .razor files hovering variable after dot (.) won't show popup with value

5 participants