Aspnetcore: Razor Component: 2 comments in a row, crashes VS2019

Created on 18 Oct 2019  路  1Comment  路  Source: dotnet/aspnetcore

ctrl+e+c: two comments next to each other, crashes

when the @ tags from comments are next to each other, it crashes.
If the @ tags have a space between them, nothing happens.
Using VS Community 16.3.1. 1 Blazor Project, 1 RCL.

To Reproduce

Steps to reproduce the behavior:

  1. Open a Blazor Razor Component (mine was in a RCL)
  2. Choose a portion of code/markup that is not inside @ code
  3. Comment the word with two comments "oneWord": @one@@Word@
  4. The issue in my machine is in red:
    image

Expected behavior

It shouldn't crash.

Additional context

If you try to open the file again with VS2019, it crashes again. It can't recover.
To any one that happens, use the notepad to edit, for example add a space between the two comments, it no longer crashes. @one@ @Word@

Tooling affected-very-few area-blazor area-razor.tooling bug severity-nice-to-have

Most helpful comment

I can reproduce. Marking appropriately.

>All comments

I can reproduce. Marking appropriately.

Was this page helpful?
0 / 5 - 0 ratings