aspnet / RazorTooling

Razor tooling for Visual Studio 2015
Other
23 stars 17 forks source link

Incorrect colorization and stalled parsing after line movement. #78

Closed pawchen closed 8 years ago

pawchen commented 8 years ago

I'm using VS2015 Update2, with asp.net core RC2 and razor tooling preview 1 on Windows 10 x64.

  1. Create project from the ASP.NET Core Web Application (.NET Core) -> Web Application template.
  2. Build
  3. Open Views/Account/ConfirmEmail.cshtml
  4. Place caret on line 8 ("Thank you for...")
  5. Hit Alt + Up
  6. Color for the <a asp-for=.. gone, expected same color.
  7. Hit Alt + Down to move the line back
  8. Color for the whole line is completely wrong, expected correct color.
  9. Hit End to move caret to the end and hit Enter
  10. Type < and Intellisense shows "Parsing document...", notice the color for the < is wrong,
  11. Hit Backspace and type < again, same thing happen

animation

NTaylorMullen commented 8 years ago

Hahaha, awesome issue :+1:. Moving this over to tooling. I could repro it on my end as well.

NTaylorMullen commented 8 years ago

This issue was moved to aspnet/Tooling#547

pawchen commented 8 years ago

Thank you, out of curiosity, could you briefly tell me what this repo mainly about? I couldn't even get the tag helper color working without the razor tools package in project.json.

NTaylorMullen commented 8 years ago

This package only enables TagHelper IntelliSense info gathering. Visual Studio then consumes the output of this repo and then turns it into the nice purply IntelliSense wonderfulness :smile:.

pawchen commented 8 years ago

Ah, I see. Thank you.