vscode-wolfram
vscode-wolfram copied to clipboard
Section Folding bug
I posted this in a closed issue, so I'm referencing it to create a new issue:
@bostick, it appears something has changed in the LSPServer. Section folding has a bug now.
This code shows the "Import" section declaration and then a function, which I've folded, followed by the initialization of variable 'sheets'

This "Import" section goes until line 470, but when I fold it, you'll see it only folds that first function.

A couple things stand out.
- Folding functions is a new feature I believe. It seems to be interfering with the section folding.
- The function folding is a nice feature that would be awesome to add to other large expression constructs like With, Block, Module, etc. For example, the next bit of code is a function encapsulated within a "With" expression. I am unable to fold it because of the encapsulation. It'd be nice to be able to fold the With statement:
Originally posted by @hifismith in https://github.com/WolframResearch/vscode-wolfram/issues/12#issuecomment-1364532072