dotnet / dotnet/roslyn

Regression in 17.13.2: context menu command Go To Controller in View editor is no longer displayed!

Open
#85,594 0 comments 0 reactions 0 assignees View on GitHub
Area-Razor
Dominant language
C#
Stars
20.7k
Forks
4.3k
PR merge metrics
PR metrics pending

Description

_This issue has been moved from [a ticket on Developer Community](https://developercommunity.visualstudio.com/t/Regression-in-17132:-context-menu-comm/10861634)._

---
[severity:It's more difficult to complete my work]
Context menu command **Go To View** in code editor is still there, as expected, but the opposite command, **Go To Controller** in View editor, is no longer displayed.

**Repro:**
- Create a new **ASP.NET Core Web App (Model-View-Controller)** project:
- Framework: .NET 8.0.
- [x] Do not use top-level statements (but I don't think this is relevant).
- Open `Controllers/HomeController.cs`.
- Right-click in the code editor, e.g. in method `Index`: command **Go To View** is available, as expected. So far so good.
- Open `Views/Home/Index.cshtml`.
- Right-click in the View editor: no command **Go To Controller** is available (although command **OtherContextMenus.HTMLContext.GoToController** is present in **Tools > Options > Environment > Keyboard**)! That's a _regression_, but I can't remember in which version this was still working.

Please fix that.

---
### Original Comments

#### Feedback Bot on 3/2/2025, 05:28 PM:

We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.