I forked to patch it with explicitFolding.langs
...
#56
Replies: 3 comments
-
|
Beta Was this translation helpful? Give feedback.
-
@smallscript Yep, there is an issue but not due to the extension. On If I miss understood your issue, can you provide screenshot or better examples? Also can you open an issue instead? Thx PS: I've found an issue with indented languages (like Python) since the |
Beta Was this translation helpful? Give feedback.
-
The issue with indented languages was more older, since |
Beta Was this translation helpful? Give feedback.
-
I forked to patch it with
explicitFolding.langs
property.0.14.9
FoldingRangeProvider
by introducingexplicitFolding.langs
to replace["*"]
hook with explicit language set.In your settings:
Happy to provide source/pull-request as appropriate. My main reason for this patch was that when enabled it hooked FoldingRangeProvider for all languages which broke simple Textmate providers.
I only wanted to use it on JavaScript and maybe a few other languages so I could have an alternate region pattern as follows:
OR the
/*..*/
variant because//
providers are aggregated which ends up coalescing sections with//
I.e., this collapse-alls into a SINGLE FOLDED section with multiple FoldingRangeProvider in VsCode at the moment. Which can be quite annoying to work with. It will unfold into two discrete sections with a little fiddling. Note, that this DOES NOT happen if the FoldingRangeProvider is unified into the language provider (I happen to also write a couple language providers for ESS - another project). Which is how I discovered these issues.
CODE CHANGES:
dsim
Beta Was this translation helpful? Give feedback.
All reactions