dotnet / razor

Compiler and tooling experience for Razor ASP.NET Core apps in Visual Studio, Visual Studio for Mac, and VS Code.
https://asp.net
MIT License
499 stars 191 forks source link

No intellisense for variables in Razor pages when adding conditions on breakpoint #4489

Open vsfeedback opened 3 years ago

vsfeedback commented 3 years ago

This issue has been moved from a ticket on Developer Community.


There is no intellisene when you set a breakpoint and you try to add conditional statement on the breakpoint. To reproduce this:


Original Comments

Feedback Bot on 11/2/2020, 00:09 AM:

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.


Original Solutions

(no solutions)

NTaylorMullen commented 3 years ago

This is a super interesting point. @tmat what does it take to enable the C# completion list for breakpoints in embedded scenarios?

tmat commented 3 years ago

IIRC debugger completion (in immediate window, watch window, conditional bps) is using some legacy interfaces and complex projection buffer logic. So we'll probably want to delete it and start from scratch with LSP.

tmat commented 3 years ago

This will be a lot of work - I believe we need to 1) use C# scripting language parsing in all these scenarios (unify with interactive window), 2) switch interactive window to LSP, 3) replace immediate window UI with interactive window UI