Closed jsbeckr closed 6 months ago
4.x
1.85.1
Master
MacOS
GDscript added code regions a while ago https://docs.godotengine.org/en/stable/tutorials/scripting/gdscript/gdscript_basics.html#code-regions
You can create regions by using a special comment #region SomeName ... #endregion. It would be nice vor VS Code to understand these statements.
#region SomeName ... #endregion
Implement code folding by implementing a custom FoldingRangeProvider
FoldingRangeProvider
https://code.visualstudio.com/api/references/vscode-api#FoldingRangeProvider
I don't know why I didn't see the code folding arrows yesterday. 😓 It's already implemented.
Godot version
4.x
VS Code version
1.85.1
Godot Tools VS Code extension version
Master
System information
MacOS
Problem statement
GDscript added code regions a while ago https://docs.godotengine.org/en/stable/tutorials/scripting/gdscript/gdscript_basics.html#code-regions
You can create regions by using a special comment
#region SomeName ... #endregion
. It would be nice vor VS Code to understand these statements.Proposed solution
Implement code folding by implementing a custom
FoldingRangeProvider
https://code.visualstudio.com/api/references/vscode-api#FoldingRangeProvider