Bug
Expected behavior:
div is replaced by <div></div>
Actual behavior:
no replacement occurs
If the setting:
"emmet.includeLanguages": {
"razor": "html"
}
is changed to:
"emmet.includeLanguages": {
"aspnetcorerazor": "html"
}
partial functionality is restored.
div expands to <div></div>, but
.alert does not expand to <div class="alert"></div> as expected.
Each of these expansions works correctly in a pure html file.
Please also provide the following to help debug the issue:
(I omitted these items because I don't think they are applicable)
I made a Blazor VS Code Snippets extension. When I use the language as razor it doesn't work with the C# extension installed. When I use aspnetcorerazor, it does work. Should I be using aspnetcorerazor?
@scottsauber The aspnetcorerazor language identifier is the lang ID added by the latest 1.17 C# extension. It replaces the default Razor support from Microsoft.VSCode. This'll change in the future when we change the Microsoft/vscode to have more of the goods in this repo.
So, the answer is: Your extension should probably apply to both Razor and aspnetcorerazor so it works in both scenarios.
Awesome thanks @NTaylorMullen!