If the worker completes after the document is closed, does the worker set diagnostics for the document that isn't present?
Since only the worker sets the diagnostics, what happens if the worker completes and doesn't throw the cancellation error, but, the request was cancelled? It should not do anything if it completes and the request was cancelled.
Description
Reproduction Steps
No clue!
Expected Behavior
There shouldn't be any race conditions.