csharpextensions icon indicating copy to clipboard operation
csharpextensions copied to clipboard

Create a class under a folder that starts with . causes to put an incorrect namespace

Open tugberkugurlu opened this issue 8 years ago • 1 comments

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.

tugberkugurlu avatar Dec 23 '16 16:12 tugberkugurlu

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 ;)

simsod avatar Mar 02 '17 08:03 simsod