Skip to content

ark: Implement folding rulesΒ #18

@kevinushey

Description

@kevinushey

VSCode allows an extension to declare folding rules within language-configuration.json:

https://code.visualstudio.com/api/language-extensions/language-configuration-guide#folding

However, it's fairly rigid -- each foldable region must have separate (and uniquely-matched) start and end boundaries. However, we'd likely want to support foldable sections -- for example:

# Section 1 ----

## Section 1.1 ----

## Section 1.2 ----

For that reason, we'll probably need to implement folding rules in the LSP (unless we want to patch the VSCode behavior here)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions