Skip to content

Minimap doesn't take editor.scrollBeyondLastLine into account and scrolls beyond the last line #28944

@vvs

Description

@vvs
  • VSCode Version: Code - Insiders 1.14.0-insider (73015a5, 2017-06-16T05:13:31.107Z)
  • OS Version: Windows_NT ia32 10.0.15063

Steps to Reproduce:

  1. Set "editor.scrollBeyondLastLine": false in settings.
    The editors now cannot scroll beyond the last line, as expected.

  2. Try to scroll via minimap, the minimap still scrolls beyond the last line, which looks weird and incorrect. The minimap preview shows that we are past the file content, but the actual editor shows that we are not past the last line.

Expected behavior:

Minimap should honor the editor settings w.r.t. scrolling past the last time. If editor cannot scroll past the last line, minimap should do the same. At the very minimum, if this sync is not desired for some reason, minimap settings should be introduced that disables scrolling past the last line, e.g. editor.minimap.scrollBeyondLastLine

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