Readonly
fullToggles whether a range is folded. Does not cause a rerender so it's possible to toggle multiple folds simultaneously.
The line number of the fold.
Optional
force: booleanIf set to true
, the range will only be folded.
If false
, the range will only be unfolded.
If undefined
, it will be toggled.
A boolean indicating whether or not a fold was toggled which means calling updateFolds in the near future is necessary.
Function called when the extension is added or the options of the editor change.
Call this after the toggleFold method to rerender the editor.
Generated using TypeDoc
The code in the editor with no ranges collapsed.