OmniSharp/omnisharp-roslyn

Fix All always does the entire project, regardless of input

333fred opened this issue · 0 comments

Microsoft.CodeAnalysis.CodeFixes.FixAllScope.Project,

This ignores the input fix all scope, and always runs fixers over the entire project, regardless of whether just one document is requested.

Example of the behavior:

  1. Create a new WPF app with dotnet new wpf.
  2. Open in vscode
  3. Open Main.xaml.cs
  4. Run "Fix all in document" on unused usings.

Expected:

App.xaml.cs is not touched.

Actual:

Unused usings are removed from App.xaml.cs as well.