Repository navigation
test(ui-test): wait for typing to reach the backend - #89
Merged
Merged
Conversation
BartvHelvert
force-pushed
the
test/ui-snippet-lookup
branch
from
November 5, 2026 22:54
0a97148 to
c964074
Compare
The snippets test typed a prefix and invoked completion at once. On a
busy Windows runner the extension host's startup held the backend, which
gave up on the requests because the typing hadn't reached it yet
("Editor did not reach the expected caret/document version"). The
lookup then closed, and nothing asked again.
Wait until the backend's document holds the typed prefix, then invoke
completion once.
Refs #84
2 of 5 tasks
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.
What this changes
SplitModeSnippetsTesttypedprobeband invoked Code Completion straight away. In the failing run (42093681438, PR #82, Windows) the client did send the request, but the extension host was starting and holding the backend. The backend then gave up on it twice, withEditor did not reach the expected caret/document version, because the typing hadn't reached it yet. The lookup closed (lookup canceled), nothing asked again, and the test timed out on[].The test now waits until the backend's document holds the typed prefix, then invokes completion once. It no longer retries completion.
Fixes #84
How it was tested
SplitModeSnippetsTestpasses in WSL (ui-test-wsl.sh, 1 test, 0 failures).Checklist
A new feature has a UI test.(a test fix, no feature)(no behaviour change)docs/is updated where behaviour changed,docs/status.mdespecially.Third-party material keeps its notice and is listed in(none added)NOTICE.md.