You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The best fix for this issue would be for the R and Python language packs to contribute their own folding providers (e.g. #18). The editor is smart enough to combine folding ranges from multiple providers.
Alternately, we could patch the editor so that it is able to merge built-in indentation based folding ranges with ranges supplied by an extension.
The text was updated successfully, but these errors were encountered:
Positron Version:
2024.04.0 build 1570
Steps to reproduce the issue:
Add a Python code cell to a
.py
file:And/or an R code cell to a
.R
file:What did you expect to happen?
These code cells should be foldable.
We have a folding provider which detects them (implemented here: https://github.com/posit-dev/positron/blob/main/extensions/positron-code-cells/src/folding.ts), but it has been temporarily disabled because enabling it turns off all other code folding in these scripts. Details here:
#2902
The best fix for this issue would be for the R and Python language packs to contribute their own folding providers (e.g. #18). The editor is smart enough to combine folding ranges from multiple providers.
Alternately, we could patch the editor so that it is able to merge built-in indentation based folding ranges with ranges supplied by an extension.
The text was updated successfully, but these errors were encountered: