fortran-language-server icon indicating copy to clipboard operation
fortran-language-server copied to clipboard

Language-Aware folding

Open JayPBe opened this issue 5 years ago • 2 comments

Hey,

I've been using your language server for quite a while now and it's a blessing for my daily work. One thing which is bugging me though, is the fact that, by default, VSCode code folding is only indentation based. As far as I understand, language aware code folding would be possible via the language server (https://microsoft.github.io/language-server-protocol/specification#textDocument_foldingRange), however my knowledge of this topic is too limited to implement this myself.

It'd be great if you could implement some basic language aware code folding and point me to the part of the fortls code which handles this, so I can possibly extend this as needed.

Thanks a lot for your awesome work.

JayPBe avatar Aug 06 '20 08:08 JayPBe

Thanks for the suggestion and sorry for the delay. I agree this would be a good feature to have. I'll look into adding it and how it is handled by VSCode and Atom.

hansec avatar Oct 01 '20 18:10 hansec

That would be immensely helpful for me as well.

phil-blain avatar Nov 02 '20 18:11 phil-blain