Hi all,
I recently implemented FoldingRange support for fortls, which enables code folding in VSCode (and other LSP clients, not tested though).
The feature has already been tested on a large Fortran codebase and is available in my fork:
https://github.com/digrapsas/fortls_code_folding
If anyone is interested in trying it out, I’d be glad to hear about any bugs, edge cases, or possible improvements.
Feedback is welcome.