foldingModel.runBatchFoldingOperation() : ONE AND ONLY ONE ?
I've noticed a strange folding behaviour, when I suspect that a 2nd
runBatchFoldingOperation() is started before a 1st
runBatchFoldingOperation() is finished. My best guess is that the 2nd
process kills the 1st one, before it could finish its action.
Does it make sense?
Alain
Please sign in to leave a comment.
Could it explain this strange error message ? :
Error message: Fold regions must be collapsed or expanded inside
batchFoldProcessing() only.
java.lang.Throwable
at com.intellij.openapi.diagnostic.Logger.error(Logger.java:31)
at com.intellij.openapi.editor.d.n.b(n.java:126)
at com.intellij.openapi.editor.d.h.setExpanded(h.java:12)
at ravet.camouflagePlugin.helpers.fold.Folder$4.run(Folder.java:122)
at com.intellij.openapi.editor.d.n.runBatchFoldingOperation(n.java:86)
at
ravet.camouflagePlugin.helpers.fold.Folder.updateExpandedState(Folder.java:119)
at
ravet.camouflagePlugin.actions.CamouListener.handleLeavingTheFoldRegion(CamouListener.java:55)
at
ravet.camouflagePlugin.actions.CamouListener.tellAboutOffsetChange(CamouListener.java:45)
at
ravet.camouflagePlugin.actions.CamouListener.tellAboutCaretMove(CamouListener.java:36)
at
ravet.camouflagePlugin.actions.CamouListener.access$000(CamouListener.java:17)
at
ravet.camouflagePlugin.actions.CamouListener$1.caretPositionChanged(CamouListener.java:25)