Skip to content

API For Monitoring Editor Viewport Changes  #17362

Closed

Description

@mjbvz

For #5047

Add an API for monitoring when the viewport (defined by at least the first visible line and last visible line) of a text editor changes. This could enable extension developers to synchronize scrolling between files, similar to how the diff view currently works.

The viewport can change in a number of ways, including:

  • Scrolling
  • File editing
  • Navigation

#5047 is for scrolling syntonization specifically, but I think we would likely want to handle any viewport changes in a uniform way.

Let me know if you have any thoughts on the API or potential use cases that we should consider when designing the API

Activity

  1. added
    feature-request
    on Dec 16, 2016
  2. mjbvz commented on Sep 20, 2018

    @mjbvz
    ContributorAuthor

    The onDidChangeTextEditorVisibleRanges api covers this

  3. added
    *duplicate
    on Sep 20, 2018
  4. locked and limited conversation to collaborators on Nov 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    *duplicateapifeature-request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions