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

allow returning undefined if file was not saved #213123

Merged
merged 8 commits into from
May 23, 2024
Merged

Conversation

amunger
Copy link
Contributor

@amunger amunger commented May 21, 2024

We want to allow cancellation from the delegated save action without showing the user an error.

microsoft/vscode-jupyter#15698

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.

Looks better, are we able to write a test for this?

@amunger amunger enabled auto-merge (squash) May 23, 2024 15:15
@amunger amunger merged commit 101ea2a into main May 23, 2024
6 checks passed
@amunger amunger deleted the aamunger/saveCancelling branch May 23, 2024 16:12
andremmsilva pushed a commit to PIC1G55/vscodeG55 that referenced this pull request May 26, 2024
* allow returning undefined if file was not saved

* bring back cancellation check

* helper utility to convey optional result if cancelled

* edit

* inline function

* test cancelled custom save

* inline more

---------

Co-authored-by: Benjamin Pasero <benjamin.pasero@microsoft.com>
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.

None yet

5 participants