Skip to content

test(ui-test): wait for typing to reach the backend - #89

Merged
BartvHelvert merged 1 commit into
masterfrom
test/ui-snippet-lookup
Nov 6, 2026
Merged

BartvHelvert merged 1 commit into
masterfrom
test/ui-snippet-lookup

Conversation

@BartvHelvert

@BartvHelvert BartvHelvert commented Nov 5, 2026 •

Copy link
Copy Markdown
Owner

What this changes

SplitModeSnippetsTest typed probeb and 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, with Editor 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

  • SplitModeSnippetsTest passes in WSL (ui-test-wsl.sh, 1 test, 0 failures).
  • The failure is intermittent on the Windows runner and wasn't reproduced locally, so this PR's CI run is the real check.

Checklist

  • Nothing is special-cased for one extension.
  • A new feature has a UI test. (a test fix, no feature)
  • No internal, override-only, obsolete or deprecated platform API.
  • docs/ is updated where behaviour changed, docs/status.md especially. (no behaviour change)
  • Third-party material keeps its notice and is listed in NOTICE.md. (none added)

@BartvHelvert
BartvHelvert force-pushed the test/ui-snippet-lookup branch from 0a97148 to c964074 Compare November 5, 2026 22:54
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
@BartvHelvert BartvHelvert changed the title test(ui-test): ask for completion again until shown test(ui-test): wait for typing to reach the backend Nov 5, 2026
@BartvHelvert
BartvHelvert merged commit 97281ed into master Nov 6, 2026
7 of 8 checks passed
@BartvHelvert
BartvHelvert deleted the test/ui-snippet-lookup branch November 6, 2026 21:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Snippets UI test waits on a completion lookup that was never shown

1 participant