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

Avoid blocking event loop when saving nb #207381

Merged
merged 1 commit into from
Mar 12, 2024

Conversation

DonJayamanne
Copy link
Contributor

For #205634

@DonJayamanne DonJayamanne marked this pull request as ready for review March 12, 2024 01:11
@DonJayamanne DonJayamanne requested a review from Yoyokrazy March 12, 2024 01:12

e.waitUntil(new Promise((resolve) => {
if (e.notebook.getCells().length === 0) {
return;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Returning here left this promise unresolved,

}
}
if (!notebookEdits.length) {
return;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Returning here left this promise unresolved,

@vscodenpa vscodenpa added this to the March 2024 milestone Mar 12, 2024
@DonJayamanne DonJayamanne enabled auto-merge (squash) March 12, 2024 07:08
@DonJayamanne DonJayamanne removed the request for review from Yoyokrazy March 12, 2024 07:09
@DonJayamanne DonJayamanne merged commit 7696df9 into main Mar 12, 2024
7 checks passed
@DonJayamanne DonJayamanne deleted the issue205634ImprovedWaitUntil branch March 12, 2024 07:18
@microsoft microsoft locked and limited conversation to collaborators Jun 10, 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.

3 participants