fix(playground): cancel the smoke test's hover in a microtask, not after a timer #824

Merged
argus merged 1 commit from fix/playground-smoke-cancel into main 2026-11-15 22:20:32 +00:00
Collaborator

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.mjs changes.

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.mjs` changes.
fix(playground): cancel the smoke test's hover in a microtask, not after a timer
All checks were successful
ci / conformance (PHP 5.6, 7.4 and 8.4) (pull_request) Successful in 5m15s
ci / tier A (linux-x64) (pull_request) Successful in 39m12s
ci / pack the seed (pull_request) Has been skipped
ci / archives (pull_request) Has been skipped
ci / gates (pull_request) Successful in 0s
images / cr.torb.dev/torbscript/registry (push) Has been skipped
images / cr.torb.dev/torbscript/release-sync (push) Has been skipped
images / cr.torb.dev/torbscript/site (push) Has been skipped
images / cr.torb.dev/torbscript/site:edge (main) (push) Successful in 14m15s
ci / commit messages (push) Successful in 7s
ci / what the change touches (push) Successful in 7s
ci / which runners exist (push) Successful in 1s
ci / bootstrap and conformance (windows-x64) (push) Has been skipped
ci / bootstrap and conformance (linux-arm64) (push) Has been skipped
ci / bootstrap and conformance (macos-arm64) (push) Has been skipped
ci / bootstrap (linux-x64) (push) Successful in 5m13s
ci / cross-compiled on linux-x64 (windows-x64) (push) Has been skipped
ci / cross-compiled on linux-x64 (linux-arm64) (push) Has been skipped
ci / cross-compiled on linux-x64 (macos-arm64) (push) Has been skipped
ci / the VS Code extension (editors/vscode) (push) Successful in 13s
ci / tools/release-sync and tools/registry (linux-x64) (push) Successful in 4m38s
ci / every host emits the same C (push) Successful in 10m0s
ci / the playground (torb as WebAssembly) (push) Successful in 3m49s
ci / conformance (JavaScript under Node.js) (push) Successful in 1m49s
ci / tier B (linux-x64) (push) Successful in 26m16s
ci / conformance (PHP 5.6, 7.4 and 8.4) (push) Successful in 5m37s
ci / tier A (linux-x64) (push) Successful in 41m55s
ci / pack the seed (push) Has been skipped
ci / archives (push) Has been skipped
ci / gates (push) Successful in 0s
33f7753ab6
Closes #823
argus approved these changes 2026-11-15 22:20:31 +00:00
argus left a comment

Approved.

  • Tests: the change is to the smoke test itself; the playground job (torb as WebAssembly) is green on this head, as are gates, tier A and conformance.
  • Correctness: LanguageClient.call (playground/editor/protocol.mjs) invokes onCancellationRequested synchronously before send, so the microtask fires right after the request is sent and the id is pending. The cancel resolves null. The worker answer arrives as a separate message task and cannot overtake the microtask, so the race with a quick server is gone.
  • Scope: only playground/smoke-test.mjs, matches #823 and the PR body.
  • Security/data/docs: nothing touched.
Approved. - Tests: the change is to the smoke test itself; the playground job (torb as WebAssembly) is green on this head, as are gates, tier A and conformance. - Correctness: `LanguageClient.call` (playground/editor/protocol.mjs) invokes `onCancellationRequested` synchronously before `send`, so the microtask fires right after the request is sent and the id is pending. The cancel resolves `null`. The worker answer arrives as a separate message task and cannot overtake the microtask, so the race with a quick server is gone. - Scope: only `playground/smoke-test.mjs`, matches #823 and the PR body. - Security/data/docs: nothing touched.
argus merged commit 33f7753ab6 into main 2026-11-15 22:20:32 +00:00
argus deleted branch fix/playground-smoke-cancel 2026-11-15 22:20:32 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
torbscript/language!824
No description provided.