Commit bc488d0
committed
perf(vscode): smoother test explorer refreshes and live test updates
The Test Explorer used to flicker on every keystroke when the tree was
expanded, slow to a crawl during multi-file edits (e.g. when an AI agent
applies many edits at once), and sometimes show "AbortError" as a
workspace entry at startup. Newly added or removed tests didn't appear
in the tree until the refresh button was pressed.
What's different now:
- The tree only re-renders when the discovered tests actually change;
identical re-discoveries leave the UI untouched.
- One refresh runs at a time — newer edits cancel the in-flight
subprocess instead of queuing up behind it.
- Many edits in a short window collapse into a single workspace refresh.
- External file changes no longer collapse expanded tree nodes.
- Tests added or removed in a saved file appear/disappear immediately.
- A workspace refresh no longer runs a redundant per-document discover
for every open file.
Also fixes a non-deterministic tag order from the discover command so
the TS side can reliably detect real tag changes.1 parent 8dc70e0 commit bc488d0
2 files changed
Lines changed: 362 additions & 156 deletions
File tree
- packages/runner/src/robotcode/runner/cli/discover
- vscode-client/extension
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
350 | 350 | | |
351 | 351 | | |
352 | 352 | | |
353 | | - | |
| 353 | + | |
354 | 354 | | |
355 | 355 | | |
356 | 356 | | |
| |||
0 commit comments