Skip to content

Hook code lens with the new test discovery #3449

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

vinistock
Copy link
Member

@vinistock vinistock commented May 2, 2025

Motivation

The code lenses were not yet fully hooked up with the new test discovery mechanism. This PR hooks it up using the same listeners used to discover tests.

Implementation

To reuse the logic for discovering tests, my proposal is that the test collection builder starts accepting test code lenses. This allows us to capture test related code lenses with minimal changes.

It will also enable us to add a setting to disable the code lenses, which is something users have requested in the past.

Finally, add-ons can easily support this as well.

Copy link
Member Author


How to use the Graphite Merge Queue

Add the label graphite-merge to this PR to add it to the merge queue.

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@vinistock vinistock added server This pull request should be included in the server gem's release notes enhancement New feature or request labels May 2, 2025 — with Graphite App
@vinistock vinistock self-assigned this May 2, 2025
@vinistock vinistock requested review from alexcrocha and st0012 May 2, 2025 15:42
@vinistock vinistock force-pushed the 05-02-hook_test_related_code_lens_with_test_discovery branch from d8d1c93 to c66dd30 Compare May 2, 2025 15:52
@vinistock vinistock marked this pull request as ready for review May 2, 2025 15:52
@vinistock vinistock requested a review from a team as a code owner May 2, 2025 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request server This pull request should be included in the server gem's release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant