madskristensen / AddAnyFile

A Visual Studio extension
Apache License 2.0
262 stars 119 forks source link

File scoped namespace option has a typo in the template when generating a "razor.cs" file #127

Open mtranchi opened 2 years ago

mtranchi commented 2 years ago

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

  1. Turn on file-scoped namespaces under Tools > Options > Text Editor > C# >Code Style > Code block preferences > Namespace declarations.
  2. Generate a code-behind file for a Blazor component (e.g. MyComponent.razor.cs).