Skip to content

fix: remove regression causing minimap to always have opacity - #311689

Merged
Alexandru Dima (alexdima) merged 6 commits into
microsoft:mainfrom
zohnannor:fix/minimap-opacity-regression
Nov 8, 2026
Merged

Alexandru Dima (alexdima) merged 6 commits into
microsoft:mainfrom
zohnannor:fix/minimap-opacity-regression

Conversation

@zohnannor

Copy link
Copy Markdown
Contributor

This PR fixes a visual regression where the minimap opacity was hardcoded to 0.9, preventing users from controlling it with the minimap.background JSON setting.
I identified the cause with the help of npx @vscode/vscode-bisect and git bisect, tracing it back to PR #299237. This change added a fixed opacity to the minimap canvas which overrode user and theme configurations.

Changes

  • Removed the hardcoded opacity: 0.9 from the minimap canvas CSS to restore theme-based transparency control.

How to test

  1. Change your workbench.colorCustomizations' minimap.background in settings.json like in the screen records below.
  2. Observe that the minimap now respects that setting properly.

(Verified locally with ./scripts/code.sh and ./scripts/test.sh)

Before (cannot be fully opaque):

Screencast_20260421_173222.webm

After (respects user's settings):

Screencast_20260421_173528.webm

Copilot AI review requested due to automatic review settings June 9, 2026 20:56

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Updates minimap CSS styling by normalizing selector formatting and altering minimap canvas opacity behavior.

Changes:

  • Adds a space before { in the .minimap.minimap-autohide-scroll selector.
  • Removes the .monaco-editor .minimap canvas { opacity: 0.9; } rule.

@alexdima
Alexandru Dima (alexdima) merged commit cd21952 into microsoft:main Nov 8, 2026
52 checks passed
@vs-code-engineering vs-code-engineering Bot added this to the 1.146.0 milestone Nov 8, 2026
@zohnannor
zohnannor deleted the fix/minimap-opacity-regression branch November 9, 2026 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Issue identified by VS Code Team member as probable bug editor-minimap Code/Text minimap widget issues modernization regression Something that used to work is now broken

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants