Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore VSCode Error Notifications #1307

Closed
RobertOstermann opened this issue Jul 25, 2024 · 2 comments
Closed

Ignore VSCode Error Notifications #1307

RobertOstermann opened this issue Jul 25, 2024 · 2 comments

Comments

@RobertOstermann
Copy link

I often see an error such as CSharpier needs to be installed globally to format files in when clicking into a source c# file. It would be nice to have the option to mute this error.

Environments

  • IDE Version: VSCode 1.92.0
  • Extension Version: 1.7.3
  • CSharpier Version: 0.28.2
    will NOT be the same as the extension version
  • Operating System:
  • .csharpierrc Settings:
  • .editorconfig Settings:

Log Output

Steps to reproduce

Go to definition of a decompiled source file, such as TimeSpan.cs and a VSCode Error Window appears even though I have CSharpier globally installed.

Expected behavior

Add a setting, maybe csharpier.notificationLevel with the options [default, error, warning, information, none]. This would allow the user to override the default notification level to avoid the error notifications.

Actual behavior

The error notification always shows. It is impossible to ignore in VSCode settings as the notification level is error.

@belav
Copy link
Owner

belav commented Aug 18, 2024

I believe #1323 will resolve your problems. Hopefully by properly detecting your global install and also never warning about decompiled files if there isn't a global install. Let me know if your decompiled sources end up in a directory not under DecompilationMetadataAsSourceFileProvider, rider had a few directories I had to ignore.

@RobertOstermann
Copy link
Author

That seems to have fixed the issue, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants