Skip to content

Avoid shitfting editor focus when using test code lens #3527

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

Merged

Conversation

vinistock
Copy link
Member

@vinistock vinistock commented May 22, 2025

Motivation

We received feedback from users that the shifting of editor focus when running a test in the terminal via code lens is surprising and not the desired behaviour. Let's prevent the focus from changing and let people manually expand the explorer if desired.

I still kept the focus change for when someone uses the Run code lens. I think that's sensible since the user will probably want to see the test results and those will only show up there.

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 self-assigned this May 22, 2025
@vinistock vinistock added vscode This pull request should be included in the VS Code extension's release notes other Changes that aren't bugfixes, enhancements or breaking changes labels May 22, 2025 — with Graphite App
@vinistock vinistock force-pushed the 05-22-avoid_shitfting_editor_focus_when_using_test_code_lens branch from b849725 to 4449b7c Compare May 22, 2025 20:36
@vinistock vinistock marked this pull request as ready for review May 22, 2025 20:37
@vinistock vinistock requested a review from a team as a code owner May 22, 2025 20:37
Copy link
Member

@st0012 st0012 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing this 😂

@st0012
Copy link
Member

st0012 commented May 23, 2025

I'd consider this as a bug fix btw.

@vinistock
Copy link
Member Author

Since it's a design decision, not a crash or definitively incorrect behaviour, I think it'd keep it as other.

@vinistock vinistock merged commit 33a72ef into main May 23, 2025
43 checks passed
@vinistock vinistock deleted the 05-22-avoid_shitfting_editor_focus_when_using_test_code_lens branch May 23, 2025 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
other Changes that aren't bugfixes, enhancements or breaking changes vscode This pull request should be included in the VS Code extension's release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants