readOnlyCodeFolding
readOnlyCodeFolding(…
providers):ReadOnlyCodeFolding
Defined in: extensions/folding/index.ts:61
Extension only supporting read-only editors which adds code folding to the editor.
Parameters
Section titled “Parameters”providers
Section titled “providers”By default, this extension does not add any foldable ranges and you must add folding range providers. This package defines multiple folding range providers you can import like bracketFolding, tagFolding, blockCommentFolding, and markdownFolding. You can also define your own providers.
Very minimal downsides to adding this extension dynamically.
Requires styles from prism-code-editor/code-folding.css