Skip to content
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

Changed the coverage updates from active to visible #466

Merged
merged 1 commit into from
Jan 26, 2025

Conversation

ogechno
Copy link
Contributor

@ogechno ogechno commented Jan 24, 2025

When working in certain scenarios such as a split-view layout coverage for a file wasn’t displaying or updating if you switched to another file without actually focusing on the coverage file. For example, if one pane shows the coverage while another pane, which is in focus, controls which file is displayed in the first pane, the coverage pane would fail to refresh properly.

This pull request fixes that issue by changing the listenToEditorEvents listener from onDidChangeActiveTextEditor to onDidChangeVisibleTextEditors. As a result, coverage now updates correctly even when the file isn’t the active editor.

Copy link
Owner

@ryanluker ryanluker left a comment

Choose a reason for hiding this comment

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

Looking great, thanks for the contribution!

@ryanluker ryanluker merged commit f255072 into ryanluker:master Jan 26, 2025
5 checks passed
@ryanluker ryanluker added this to the 2.13.0 milestone Jan 26, 2025
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.

2 participants