fix(playground): cancel the smoke test's hover in a microtask, not after a timer #824
No reviewers
Labels
No labels
loop
queue/failed
queue/queued
ready
status/parked
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
torbscript/language!824
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/playground-smoke-cancel"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #823
The step "a request Monaco cancels answers null" cancelled its hover request after a timer; the playground job failed on the head of #819 without this change and passed with it. Split out of #819 where it was out of scope. Only
playground/smoke-test.mjschanges.Approved.
LanguageClient.call(playground/editor/protocol.mjs) invokesonCancellationRequestedsynchronously beforesend, so the microtask fires right after the request is sent and the id is pending. The cancel resolvesnull. The worker answer arrives as a separate message task and cannot overtake the microtask, so the race with a quick server is gone.playground/smoke-test.mjs, matches #823 and the PR body.