aspnet / RazorTooling

Razor tooling for Visual Studio 2015

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Incorrect colorization and stalled parsing after line movement.

pawchen opened this issue · comments

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

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

This issue was moved to aspnet/Tooling#547

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.

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 😄.

Ah, I see. Thank you.