csharpextensions
csharpextensions copied to clipboard
Create a class under a folder that starts with . causes to put an incorrect namespace
If you create a class under folder .template
, it creates a namespace called .template
. I wonder if there is an API in roslyn to get invalid namespace chars and replace them with _
.
I am also not sure if this is covered but any namespace that starts with a number is also invalid. So, above approach would fail there.
This extension isnt using Roslyn under the hood. We´re hoping that the omnisharp-vscode extension in the future will be able to expose it´s language service so that other extensions can use it.
However, this issue could be fixed just by a replacing some chars ;)