Repository navigation
[web-console] Ignore the Monaco dispose race that is thrown from a timer - #8255
Merged
Merged
Conversation
The unit tests ignore the `TextModelPart is disposed!` error of the Monaco JSON completion, because a test that disposes the editor soon after typing can cause it. The filter compared the message for equality. Monaco can also throw this error again from a timer, with the original stack appended to the message. The filter did not match that form, so the run failed although all tests passed. The filter matches the message by its prefix. Fixes #8240 Signed-off-by: Karakatiza666 <bulakh.96@gmail.com>
Contributor
|
LGTM.
|
gz
approved these changes
Dec 5, 2026
mihaibudiu
approved these changes
Dec 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #8240
Problem
The Web Console unit test job failed in the merge queue although all tests passed. Vitest reported one unhandled error,
TextModelPart is disposed!, from the Monaco JSON completion.vite.config.tshas a filter for this error, but the filter compared the message for equality. Monaco reports the error in two forms:messageTextModelPart is disposed!unexpectedErrorHandlerinmonaco-editor/esm/vs/base/common/errors.jsTextModelPart is disposed!\n\n<original stack>Change
src/lib/functions/vitest/monacoDisposeRace.ts, so that a test can import it.lspLanguageFeaturesin the message or the stack.Canceledrejection, and for errors that must fail the run.Not changed
The
close timed out after 10000msline in the failed logs is not the cause. A green merge-queue run (47501715566) prints the same line and exits with code 0.Testing
MultiJSONDialog.svelte.spec.tspasses with the new config.