foldings property
Map of all fold ranges detected in the document, keyed by start line index.
This map is automatically populated based on code structure (braces, indentation, etc.) when folding is enabled.
Implementation
Map<int, FoldRange?> foldings = {};