vscode-wolfram icon indicating copy to clipboard operation
vscode-wolfram copied to clipboard

Section Folding bug

Open hifismith opened this issue 3 years ago • 0 comments

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' image

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

A couple things stand out.

  1. Folding functions is a new feature I believe. It seems to be interfering with the section folding.
  2. 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: image

Originally posted by @hifismith in https://github.com/WolframResearch/vscode-wolfram/issues/12#issuecomment-1364532072

hifismith avatar Dec 29 '22 14:12 hifismith