Skip to content

Removal of trailing newlines needs to be staged in two parts #79910

Description

@jrial
  • VSCode Version: 1.37.1
  • OS Version: Linux x64 4.15.1-58-generic

Steps to Reproduce:

  1. Remove trailing newlines from a file under version control.
  2. Go to the Source Control view.
  3. Try to stage the removal of these newlines: right-click on the right-hand side and select "stage selected changes"
  4. Notice how there's still one removal that appears to have been left behind.
  5. Repeat step 3
  6. Now your removals have all been staged.

Expected behaviour: at step 3 the entire newline removal should be staged.

Demo video: https://youtu.be/KmlczMUMK9w

Does this issue occur when all extensions are disabled?: Yes

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable buggitGIT issueshelp wantedIssues identified as good community contribution opportunitiesinsiders-releasedPatch has been released in VS Code InsidersverifiedVerification succeeded

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions