You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IDE Version: Visual Studio 2022 Professional 17.0.*
Extension Version: CSharpier 1.9.0
CSharpier Version:(Not sure how to confirm this; likely tied to the extension)
Operating System: Windows 11 22H2
.csharpierrc Settings: Default settings
.editorconfig Settings: Default settings (no custom configurations)
Log Output
No specific logs were found in the %AppData%\Microsoft\VisualStudio\... or similar directories.
Attempted to disable the extension using the command ExtensionManager.DisableCSharpier in Visual Studio Command Prompt, but it returned the error:
Steps to reproduce
Install the CSharpier extension in Visual Studio.
Attempt to open multiple solutions simultaneously using a script.
Observe that Visual Studio's performance drops, likely due to CSharpier formatting during the solution loading process.
Attempt to disable the extension programmatically with ExtensionManager.DisableCSharpier.
Expected behavior
A valid Visual Studio Command exists to disable CSharpier without manual intervention, particularly when managing large-scale solution-loading scenarios programmatically.
Actual behavior
The command ExtensionManager.DisableCSharpier does not exist or is not valid.
Visual Studio exhibits performance issues when loading multiple solutions with CSharpier active.
Additional Notes
Would it be possible to add a valid command for enabling/disabling CSharpier from a script or programmatically through Visual Studio commands?
Alternatively, documentation on how to automate disabling CSharpier for specific scenarios would be helpful.
The text was updated successfully, but these errors were encountered:
I'm not aware of any way to disable VS extensions programatically, which would be required for a command to work. You can disable the extension through VS itself using the extension manager. Ideally VS would add a CLI for doing this instead of individual extensions supporting it. It looks like VSCode has some capabilities like that.
The CSharpier extension shouldn't be formatting anything at startup. It will ensure that the proper version of csharpier is installed when a c# file is opened, and if it is not installed that will take some time in the background. I have it on my list to try to improve performance of all of the extensions at startup to make sure they don't slow down the intial sln load but it hasn't been a priority yet.
Issue Template for CSharpier
Environments
Log Output
%AppData%\Microsoft\VisualStudio\...
or similar directories.ExtensionManager.DisableCSharpier
in Visual Studio Command Prompt, but it returned the error:Steps to reproduce
ExtensionManager.DisableCSharpier
.Expected behavior
Actual behavior
ExtensionManager.DisableCSharpier
does not exist or is not valid.Additional Notes
The text was updated successfully, but these errors were encountered: