Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document the editor commands: editor.fold, editor.unfold #4307

Closed
aeschli opened this issue Dec 18, 2023 · 0 comments
Closed

Document the editor commands: editor.fold, editor.unfold #4307

aeschli opened this issue Dec 18, 2023 · 0 comments
Labels
documentation feature-request Request for new features or functionality
Milestone

Comments

@aeschli
Copy link
Contributor

aeschli commented Dec 18, 2023

The monaco editor documentation should also document the available editor commands such as:

editor.unfold - Unfold the content in the editor

  • Unfold editor argument - Property-value pairs that can be passed through this argument:
    • 'levels': Number of levels to unfold. If not set, defaults to 1.
    • 'direction': If 'up', unfold given number of levels up otherwise unfolds down.
    • 'selectionLines': Array of the start lines (0-based) of the editor selections to apply the unfold action to. If not
      set, the active selection(s) will be used.

editor.fold - Fold the content in the editor

  • Fold editor argument - Property-value pairs that can be passed through this argument:
    • 'levels': Number of levels to fold.
    • 'direction': If 'up', folds given number of levels up otherwise folds down.
    • 'selectionLines': Array of the start lines (0-based) of the editor selections to apply the fold action to. If not set, the active selection(s) will be used.
      If no levels or direction is set, folds the region at the locations or if already collapsed, the first uncollapsed parent instead.

Originally posted by @aeschli in #4024 (comment)

@aeschli aeschli changed the title Document the editor commands: editor.unfold Document the editor commands: editor.fold, editor.unfold Dec 18, 2023
@aeschli aeschli added this to the Backlog milestone Dec 18, 2023
@aeschli aeschli added documentation feature-request Request for new features or functionality labels Dec 18, 2023
@aeschli aeschli closed this as completed Dec 18, 2023
@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Aug 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

1 participant