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

Fixing the cancellation error on quick typing in sticky scroll #190161

Merged
merged 2 commits into from
Aug 11, 2023

Conversation

aiday-mar
Copy link
Contributor

@aiday-mar aiday-mar commented Aug 10, 2023

Fixes #179863

Error is thrown because when trigger scheduler is cancelled and the promise it is meant to fulfil is not fulfilled yet, it throws an error. The trigger scheduler however is called on every model change, and if you type sufficiently quickly the above conditions are verified and errors are thrown. The fix presented here is to ignore errors thrown inside of the promise.

@aiday-mar aiday-mar requested a review from jrieken August 10, 2023 12:15
@aiday-mar aiday-mar self-assigned this Aug 10, 2023
@VSCodeTriageBot VSCodeTriageBot added this to the August 2023 milestone Aug 10, 2023
@aiday-mar aiday-mar requested a review from jrieken August 10, 2023 13:24
@aiday-mar aiday-mar merged commit 6e2cace into main Aug 11, 2023
6 checks passed
@aiday-mar aiday-mar deleted the aiday/fixingMonacoEditorError branch August 11, 2023 09:30
@github-actions github-actions bot locked and limited conversation to collaborators Sep 25, 2023
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.

[Bug] stickyScroll error on typing: Uncaught (in promise) Canceled: Canceled
4 participants