Skip to content

Improve naming of "editor.minimap.mode" setting and its values #91405

@weinand

Description

@weinand

Testing #91250:

When reading the following in my settings file, I have no idea what this means:

"editor.minimap.mode": "actual",

And I have a hard time understanding what the other two "modes" "contain" and "cover" really mean.

So I tried hard to understand what is controlled by the "mode". On a mathematical level it is a "projection", but this is not something to "throw" at users.

On a simpler level it is the "size" of the minimap.

Based on this we could rename "mode" to "size" and use these values and descriptions:

  • "sameSize": Minimap has the same size as the editor contents (and might scroll).
  • "shrink": The minimap will shrink as necessary to never be larger than the editor (no scrolling).
  • "shrinkOrExpand": The minimap will stretch or shrink as necessary to fill the height of the editor (no scrolling).

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugeditor-minimapCode/Text minimap widget issuesverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions