Skip to content

Feature request: Collapsable #regions #37

Description

@grndctrl

Would be nice to have the ability in Zed to collapse #regions, like the Godot Editor does.
Come to think of it, this might be something the tree-sitter is handling though.

Activity

  1. NathanLovato commented on Jun 15, 2025

    @NathanLovato
    Contributor

    I just tested this and currently the parser does not recognize region sections. There's an issue open upstream that mentions it's doable but not that simple to implement.

  2. NathanLovato commented on Jul 2, 2025

    @NathanLovato
    Contributor

    Started working on this in the upstream GDScript parser, once this is working and integrated we'll be able to add this feature in the Zed GDScript extension: PrestonKnopp/tree-sitter-gdscript#34

  3. self-assigned this
    on Jul 8, 2025
  4. fstxz commented on Oct 1, 2025

    @fstxz
    Contributor

    I think Zed doesn't support this yet, see zed-industries/zed#22703

  5. NathanLovato commented on Oct 1, 2025

    @NathanLovato
    Contributor

    Yes, that's correct, we cannot support this currently.

    At one point we had the parser create region nodes that we could easily query for folding, that would wrap child syntax. But it caused other issues. So we have reverted to using the same approach as in the c# parser which doesn't allow for folding right now in neovim and Zed

  6. removed their assignment
    on Oct 16, 2025
  7. added
    upstreamDepends on a change in the Godot engine, Zed, or another dependency
    on Oct 16, 2025
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

    enhancementNew feature or requestupstreamDepends on a change in the Godot engine, Zed, or another dependency

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions