Skip to content

Add Reveal In Explorer and trigger continuous test reruns on any workspace file save#4153

Open
Code-Farmer-Ming wants to merge 3 commits into
Shopify:mainfrom
Code-Farmer-Ming:main
Open

Add Reveal In Explorer and trigger continuous test reruns on any workspace file save#4153
Code-Farmer-Ming wants to merge 3 commits into
Shopify:mainfrom
Code-Farmer-Ming:main

Conversation

@Code-Farmer-Ming

@Code-Farmer-Ming Code-Farmer-Ming commented Jul 3, 2026

Copy link
Copy Markdown

Motivation

There are two recurring workflow gaps in the current Test Explorer experience:

  1. It is not always easy to jump from the current test context back to the explorer tree.
  2. Continuous testing is too narrow when it only reruns on test-file edits, since many failures are caused by changes outside test files (application code, config, shared helpers, etc.).

This PR addresses both by improving navigation and broadening rerun triggers to better match real-world development flow.

Implementation

  1. Added Reveal In Explorer action
  • Introduced a dedicated Reveal In Explorer action so a test can be quickly focused in the Test Explorer at any time.
  • Aligned command/type naming consistently across generation, resolution, and extension command wiring.
  1. Expanded Continuous Test triggers to workspace-wide saves
  • Updated continuous mode so reruns are triggered by saves to any file in the target workspace, not only test files.
  • Preserved workspace scoping and non-file filtering to avoid cross-workspace noise and invalid triggers.

Automated Tests

  • Updated and extended test coverage for Reveal In Explorer behavior and command resolution.
  • Updated CodeLens-related assertions to account for the additional test action.
  • Verified compile/test behavior for the modified extension paths; unrelated environment-dependent failures remain outside the scope of this change.

Manual Tests

  1. Reveal In Explorer
  • Open a test file and wait for discovery.
  • Trigger Reveal In Explorer from test actions/CodeLens.
  • Confirm the corresponding test is focused/revealed in Test Explorer.
  1. Continuous Test (workspace-wide trigger)
  • Start a continuous run for a test or test group.
  • Save a non-test file in the same workspace.
  • Confirm the continuous run reruns automatically.
  • Save a test file and confirm rerun still works.
  • In multi-root setup, verify only saves in the target workspace trigger reruns.

…uby tests

- Introduced a new command `rubyLsp.revealInExplorer` to reveal test items in the explorer.
- Updated package.json to include context menu items for test items.
- Implemented the `showInExplorer` method in TestController to handle revealing test items.
- Added tests to verify the functionality of revealing tests in the explorer.
- Created a new install script for local development of the Ruby LSP VS Code extension.
@Code-Farmer-Ming Code-Farmer-Ming requested a review from a team as a code owner July 3, 2026 09:18
@Code-Farmer-Ming

Copy link
Copy Markdown
Author

I have signed the CLA!

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.

1 participant