belav / csharpier

CSharpier is an opinionated code formatter for c#.
https://csharpier.com
MIT License
1.43k stars 99 forks source link

Replace global/local installation prompts when opening C# source files with this #1005

Open geekox86 opened 1 year ago

geekox86 commented 1 year ago

Greetings all. First, I want to say thank you for this lovely tool. Really appreciated.

I am just a little annoyed by the global/local installation message that shows in VS Code every time I open a C# source file from outside my project (e.g. by the disassembler when following symbols) or in a project where CSharpier is not used.

I think it is better to just inform the user once after installing the CSharpier plugin that he/she can execute a command from the VS Code command menu to install locally/globally.

Thank you for your consideration.

belav commented 1 year ago

I've run into a similar headache with rider, and do have some code there to ignore specific directories that contain decompiled code. Do you happen to know what directory VSCode uses when decompiling code?

Either way I'll see what I can do about moving away from the installation message, or at least limiting it to just show a single time.

geekox86 commented 1 year ago

Hi @belav, I think it is somewhere under the user profile AppData path. I will try to capture it from the error message next week.

geekox86 commented 1 year ago

Hi again.

This is the path on my macOS. I am not sure about Windows.

CSharpier-MacOS