csharpextensions
csharpextensions copied to clipboard
Cannot create correct namespace if the class file name starts with root namespace
Here are the steps to reproduce the issue:
- Create a console project called Cat,
dotnet new console -o Cat
- Create a folder called
Food
underCat
- Right click the
Food
folder in VS Code and clicknew C# Class
with the class nameCatFood1
- The namespace of
CatFood1
is.
instead ofCat.Food
OS: macOS 10.12.5 VS Code: 1.15.0 C# Extensions: 1.3.0