When editing code in a LS backed generic text editor, the folding reconciler is not working as expected. As a user I would expect that the folding reconciler would be invoked while editing the code.
Example: adding new if clause, no folding annotation has been added:
I looked into the LSPFoldingReconcilingStrategy and wondered why the reconcile method does nothing:
When editing code in a LS backed generic text editor, the folding reconciler is not working as expected. As a user I would expect that the folding reconciler would be invoked while editing the code.
Example: adding new if clause, no folding annotation has been added:![image](https://github.com/eclipse/lsp4e/assets/123444711/efdaca41-9a95-4856-9ae8-aae1d98a56cd)
I looked into the LSPFoldingReconcilingStrategy and wondered why the reconcile method does nothing:
https://github.com/eclipse/lsp4e/blob/20e882682eb3e7a748f80e9814243c9578ff390f/org.eclipse.lsp4e/src/org/eclipse/lsp4e/operations/folding/LSPFoldingReconcilingStrategy.java#L311
When calling the
reconcile(IRegion subRegion)
in:...then it works:![image](https://github.com/eclipse/lsp4e/assets/123444711/bef20a5a-29a8-444a-85a4-cd5da7f8b691)