The setting editor.foldingStrategy
is extended to use the folding ranges provided by only one extension.
For example, if you are using the extension Explicit Folding:
Traditionally, VSCode is using the folding ranges provided:
- by the folding range provider defined by the setting
editor.foldingStrategy
(auto
orindentation
) - and by the folding range provider defined by that extension if
editor.foldingStrategy
is set toauto
With MrCode, it's using the folding ranges provided:
- by the folding range provider defined by the setting
editor.foldingStrategy
(auto
orindentation
) - or by the folding range provider defined by that extension if
editor.foldingStrategy
is set toexplicit
editor.foldingStrategy
can combine differents folding range providers with the operators &
and |
:
language | indentation
: folding ranges from a language provider or, if none found, from the indentation providerexplicit & indentation
: folding ranges from the explicit provider and from the indentation provider
editor.foldingStrategy
supports only identical operators:
language | explicit | indentation
is validlanguage | explicit & indentation
isn't and will be defaulted toauto
.
auto
becomes an alias for language | indentation
.