Open snebjorn opened 3 years ago
OminSharp should certainly be using a version of Roslyn with that particular fix.
Does the fix still get auto-applied when you set the severity to none? See https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/configuration-options for details.
example:
dotnet_diagnostic.IDE0050.severity = none
OK I think I understand the problem a little better now. I propose we add a VS Code setting that will allow you to filter out particular diagnostics from being applied during FixAll operations.
Unfortunately it still runs with
dotnet_diagnostic.IDE0050.severity = none
https://github.com/dotnet/roslyn/issues/50468 says it was fixed by making it a "refactoring" instead of a "code style analyzer". Isn't the underlaying problem then that "fixAll" also runs "refactors"?
// vscode settings
{
"settings": {
"[csharp]": {
"editor.codeActionsOnSave": {
"source.fixAll.csharp": true,
}
}
}
}
I'm having an issue where anonymous type are auto converted to tuple when I save my file. It appears to be related to this fixed issue https://github.com/dotnet/roslyn/issues/50468 But I cannot figure out in what version this was released.
Example of auto fix issue:
I have the following settings and I'm using an .editorconfig file
Rule IDE0050 cannot be configured. Please advice.