Skip to content

When cancellation is requested in formatter, double semicolons are inserted #52382

@allisonchou

Description

@allisonchou

Repro:

  1. Paste the following code into a C# file:
class C
{
    public string Foo = "foo"
}
  1. Put a breakpoint here at the beginning of GetFormattingChangesAsync.
  2. Insert semicolon after "foo".
  3. After the breakpoint is hit, step over. Hit "Cancel" when this dialog pops up:
    image
  4. Continue with code execution.
  5. Observe double semicolons being inserted:
    image

cc @uniqueiniquity

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions