Skip to content

Support Go To Def for Mvc tag helpers in cohosting#12102

Merged
davidwengier merged 9 commits intodotnet:mainfrom
davidwengier:TagHelperGoToDef
Aug 14, 2025
Merged

Support Go To Def for Mvc tag helpers in cohosting#12102
davidwengier merged 9 commits intodotnet:mainfrom
davidwengier:TagHelperGoToDef

Conversation

@davidwengier
Copy link
Member

Fixes #6440

Actually taking advantage of cohosting!

In the LSP editor, it was impossible for Go To Def to work on Mvc tag helpers because their definitions come from C# code, and all we have is a type name with no access to a compilation. In cohosting we have the compilation easily availalle, so we can finally fix this issue (without extra metadata on tag helpers).

@davidwengier davidwengier requested a review from a team as a code owner August 13, 2025 12:52
@davidwengier davidwengier merged commit 64691ee into dotnet:main Aug 14, 2025
11 checks passed
@davidwengier davidwengier deleted the TagHelperGoToDef branch August 14, 2025 21:57
@dotnet-policy-service dotnet-policy-service bot added this to the Next milestone Aug 14, 2025
@RikkiGibson RikkiGibson modified the milestones: Next, 18.0 P1 Aug 20, 2025
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.

Feature: Go To Definition For Tag Helpers (and View Components)

3 participants