You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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: PrestonKnopp/tree-sitter-gdscript#34
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
Activity
NathanLovato commentedon Jun 15, 2025
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.
NathanLovato commentedon Jul 2, 2025
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
fstxz commentedon Oct 1, 2025
I think Zed doesn't support this yet, see zed-industries/zed#22703
NathanLovato commentedon Oct 1, 2025
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