How to get a list of foldable lines from editor


#1

Hi,

I am trying to create a package which would navigate to foldable lines within the editor window.

How can I get a list of foldable lines ?

I have tried

console.log(editor.displayBuffer.foldsMarkerLayer.getMarkers());
console.log(editor.displayBuffer.foldsByMarkerId);

However these only contains “folds/markers/lines” which are already folded.

But when you look at my screenshot … there must be a list of these foldable lines available somewhere within the code because when you hover over the line number area you instantly get a list of them displaying.

Does anybody know how to get hold of this list ? Thank you for helping :slight_smile: