Skip to content

Conversation

@amunger
Copy link
Collaborator

@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

@amunger amunger requested review from bpasero and rebornix May 21, 2024 05:27
@vscodenpa vscodenpa added this to the May 2024 milestone May 21, 2024
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
@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>
@microsoft microsoft locked and limited conversation to collaborators Jul 7, 2024
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.

6 participants