Skip to content

Allow empty labels array to be pushed to set-labels to remove all of them - #4637

Merged
Alex Ross (alexr00) merged 1 commit into
microsoft:mainfrom
Balastrong:fix/remove-last-label
Mar 17, 2023
Merged

Allow empty labels array to be pushed to set-labels to remove all of them#4637
Alex Ross (alexr00) merged 1 commit into
microsoft:mainfrom
Balastrong:fix/remove-last-label

Conversation

@Balastrong

Copy link
Copy Markdown
Contributor

This PR fixes #4634

If there are no checked labels from the quick pick menu, the command set-labelsis not posted, preventing the possibility to remove all (the last one) selected labels.
I didn’t remove the if because labelsToAdd can be undefined if the menu is closed with esc, but the length control is causing the bug hence should be removed.

@alexr00 Alex Ross (alexr00) added this to the March 2023 milestone Mar 17, 2023
@alexr00
Alex Ross (alexr00) enabled auto-merge (squash) March 17, 2023 08:57

@alexr00 Alex Ross (alexr00) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cannot remove the last label

3 participants