Skip to content

Add a "scroll to position" function #635

Open
@SeeminglyScience

Description

@SeeminglyScience

I was looking at implementing some editor commands that scroll to next function/method/thing and none of the current API's scroll. Looks like there was a change at some point that made insert text, set selection, etc not scroll by default in VSCode.

We should implement a new request ShowEditorPositionRequest and add a function (Show-EditorPosition?) to Commands that sends it (and optionally also add it to $psEditor)

The VSCode implementation could use the TextEditor.revealRange method.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions