dotnet/roslyn

Invert if refactoring is not available at the top-level

Open

#71.424 aberto em 30 de dez. de 2023

Ver no GitHub
 (3 comments) (0 reactions) (0 assignees)C# (4.257 forks)batch import
Area-IDEBughelp wanted

Métricas do repositório

Stars
 (20.414 stars)
Métricas de merge de PR
 (Mesclagem média 6d 17h) (256 fundiu PRs em 30d)

Description

Version Used: 4.8.0-7.23558.1 (e0917286)

Steps to Reproduce:

  1. Create a new console project. And replace Program.cs with the following
    if (int.Parse("0") == 2)
    {
        Console.WriteLine("Hello");
    }
    else
    {
        Console.WriteLine("World");
    }
    
  2. Put the text cursor at the beginning of if
  3. Open refactorings

Diagnostic Id: N/A

Expected Behavior: Invert if refactoring is applicable

Actual Behavior: Invert if is not present in refactorings

Guia do colaborador