Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Have group.closeEditors return a boolean promise #146188

Merged
merged 3 commits into from Mar 28, 2022
Merged

Conversation

lramos15
Copy link
Member

This PR unblocks #145828

Currently group.closeEditors returns a Promise<void> which does not give any state information about whether the close operation was vetoed by a dirty editor confirmation dialog.

This PR better aligns group.closeEditors return value with that of group.closeEditor so state information can be received by the caller.

@lramos15 lramos15 added this to the April 2022 milestone Mar 28, 2022
@lramos15 lramos15 requested a review from bpasero March 28, 2022 14:46
@lramos15 lramos15 self-assigned this Mar 28, 2022
Copy link
Member

@bpasero bpasero left a comment

Choose a reason for hiding this comment

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

No tests, no approval :)

@lramos15
Copy link
Member Author

I modified the current dirty handling test to be inline with group.closeEditor if you want more of a test let me know

@lramos15 lramos15 requested a review from bpasero March 28, 2022 15:43
Copy link
Member

@bpasero bpasero left a comment

Choose a reason for hiding this comment

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

👏

@lramos15 lramos15 merged commit 67ed942 into main Mar 28, 2022
@lramos15 lramos15 deleted the lramos15/closeEditors branch March 28, 2022 15:47
@github-actions github-actions bot locked and limited conversation to collaborators May 12, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants