belav / csharpier

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

"CSharpier must be installed globally" yellow bar in VS #1134

Open jods4 opened 10 months ago

jods4 commented 10 months ago

Context:

Any time I open a file that is not inside a project with a local CSharpier tool (e.g. a global file, or a project without CSharpier), the yellow bar appears at the top of VS to tell me CSharpier must be globally installed to format such files.

I suggest that you only display this notification once, then never again.

belav commented 10 months ago

I thought I made it work that way, but maybe it is specific to a running instance. IE you close VS and re-open it, you will get the bar again.

jods4 commented 10 months ago

I did a quick bit of testing, it seems that indeed the gold bar doesn't re-appear in the VS instance that I'm working in. It does as soon as I open a new VS instance.

klylesatepic commented 3 months ago

Would it be appropriate to only show the banner when "Reformat with CSharpier on Save" is enabled (or at least not disabled)?

I have one repository I use CSharpier for (at least, so far), and have Reformat with CSharpier on Save disabled globally but enabled for that repository. I would like to only see the banner in the repository where it's enabled, and only if CSharpier is not installed there.