Feature request: Collapsable #regions
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.
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.
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: https://github.com/PrestonKnopp/tree-sitter-gdscript/pull/34
I think Zed doesn't support this yet, see https://github.com/zed-industries/zed/issues/22703
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