feat: show coverage indicators in minimap#307250
Merged
connor4312 merged 1 commit intomicrosoft:mainfrom Apr 2, 2026
Merged
Conversation
Add minimap decorations to test coverage display so users can see covered and uncovered regions at a glance in the minimap gutter. - Register new color tokens testing.coveredMinimapBackground and testing.uncoveredMinimapBackground with defaults matching the existing gutter coverage colors - Add testing.coverageMinimapEnabled setting (default: true) to control minimap coverage visibility - Apply MinimapPosition.Gutter decorations to both statement and branch coverage detail ranges, using covered/uncovered colors based on hit count Closes microsoft#258961
Member
connor4312
approved these changes
Apr 2, 2026
dmitrivMS
approved these changes
Apr 2, 2026
|
Awesome job! Any chance this screenshot could be added to the 1.115 release notes. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

What kind of change does this PR introduce?
Feature (implements a requested enhancement)
What is the current behavior?
When test coverage is displayed in the editor, coverage indicators (covered/uncovered lines) are shown in the line number gutter and optionally inline, but there is no coverage visualization in the minimap. Users who want to quickly scan for coverage gaps in a file must scroll through the entire document.
Closes #258961
What is the new behavior?
Coverage indicators now appear in the minimap gutter, showing covered regions in green and uncovered regions in red. This allows users to see coverage gaps at a glance without scrolling.
Changes:
testing.coveredMinimapBackgroundandtesting.uncoveredMinimapBackgroundregistered intheme.ts, with defaults matching the existing gutter coverage colors (green for covered, red for uncovered)testing.coverageMinimapEnabled(boolean, defaulttrue) inconfiguration.tsto let users toggle minimap coverage indicators independentlycodeCoverageDecorations.tsnow includeminimap: { color, position: MinimapPosition.Gutter }when the setting is enabled. The observable config value is read reactively so toggling the setting updates the minimap immediately.Additional context
The implementation follows the same pattern used by the SCM quick diff decorator (
quickDiffDecorator.ts), which adds minimap indicators for added/modified/deleted lines usingthemeColorFromId()andMinimapPosition.Gutter.