dotnet / dotnet/vscode-csharp

VS Code not picking up HTML tags after Razor code

Open
#2,601 14 comments 0 reactions 0 assignees View on GitHub
OmniSharp Razor
Dominant language
TypeScript
Stars
3.1k
Forks
737
Avg merge
18h 40m
Merged PRs (30d)
31

Description

Issue Type: Bug

I was told by the VS Code GitHub that this is an issue with this extension.

Take a look at the screenshot. You can see `

  • ` tags with a razor action link and then the closing `
  • ` tags after that are not being picked up afterwards.

    ![vs-code_razor](https://user-images.githubusercontent.com/16159685/46884131-14531800-ce22-11e8-87ef-238f098e9387.PNG)

    I'm assuming this can easily be reproduced by creating a razor file and then creating an unordered list as shown in the screenshot. This is happening with `@Html.ActionLink()` as well as `@RenderSection` and looks like it happens anytime razor code is used at all.

  • Contributor guide

    Open the contributing guide

    Assessment

    This issue has not been assessed yet.

    Get new issues in your inbox

    A short digest of beginner-friendly GitHub issues.