Skip to content

Rude edits do not appear in refactoring preview #32788

@sharwell

Description

@sharwell

Version Used: Visual Studio 2019 Preview 2

🔗 Originally filed as https://devdiv.visualstudio.com/DevDiv/_workitems/edit/123201

Steps to reproduce:

  1. Create a new .NET Framework Console application.

  2. Add some functioning code to Main()--it doesn't really matter what it is.

  3. Set a breakpoint at the beginning of Main().

  4. Start debugging.

  5. Add the following to Main():

    var b = new Blah();
  6. Open the light bulb and select the item to generate a new nested type named Blah in the same file.

Expected:

Preview shows a purple squiggle under private class Blah() because it will be a rude edit.

Actual:

No squiggle in the preview. It doesn't show up until the code for the new type is generated.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions