godotengine / godot-vscode-plugin

Godot development tools for VSCode
MIT License
1.48k stars 148 forks source link

Support Region blocks #547

Closed microBob closed 7 months ago

microBob commented 7 months ago

Godot version

4.2-stable

VS Code version

1.85

Godot Tools VS Code extension version

1.3.1

System information

macOS

Problem statement

Godot 4.2 introduces folding region blocks like this:

#region My Region
...
#endregion

Proposed solution

It would be great if VSCode could recognize these blocks, perform autocomplete to create them, fold them, and show them in the outline.

DaelonSuzuka commented 7 months ago

https://marketplace.visualstudio.com/items?itemName=maptz.regionfolder

Calinou commented 7 months ago

@DaelonSuzuka This could be added as a recommended extension to this extension, since it's a standard part of GDScript now. I believe VS Code has a system in place for extensions to recommend others (without making them hard requirements).

DaelonSuzuka commented 7 months ago

I have almost never not been annoyed by extension recommendations, but I'll think about it.