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
497 stars 191 forks source link

FindToken failure while editing @model directive #9957

Open alexgav opened 7 months ago

alexgav commented 7 months ago

I hit this while replacing existing @model directive with a new open via snippet (so the name in model was wrong - default from the snippet)

image

I'll see if I can nail down exact repro, but I did capture a dump. Accessible to MSFT employees only. https://microsoft-my.sharepoint.com/:u:/p/alexgav/EbclQ7M4GrNKiYcwPri7IvMBHNqrCTkO_W4i2Q1LyUYf-Q?e=gi04wI

Basically I replaced existing @model directive via inserting @model snippet, and then hit Tab several times.

image

chsienki commented 7 months ago

@333fred Please take a look.