AddAnyFile
AddAnyFile copied to clipboard
File scoped namespace option has a typo in the template when generating a "razor.cs" file
Description
When one has the file-scoped namespaces option turned on in Tools > Options > Yada Yada, the generated file is missing the closing brace on the class if creating a code-behind file for a razor file (e.g. MyComponent.razor.cs).
Steps to reproduce
- Turn on file-scoped namespaces under Tools > Options > Text Editor > C# >Code Style > Code block preferences > Namespace declarations.
- Generate a code-behind file for a Blazor component (e.g. MyComponent.razor.cs).