File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
src/main/kotlin/com/github/xepozz/php_dump/startup Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ package com.github.xepozz.php_dump.startup
33import com.github.xepozz.php_dump.services.EditorProvider
44import com.github.xepozz.php_opcodes_language.language.PHPOpFile
55import com.github.xepozz.php_opcodes_language.language.psi.PHPOpBlockName
6+ import com.intellij.openapi.editor.FoldingGroup
67import com.intellij.openapi.editor.ScrollType
78import com.intellij.openapi.editor.event.EditorMouseEvent
89import com.intellij.openapi.editor.event.EditorMouseListener
@@ -68,16 +69,16 @@ class EditorListener : EditorMouseListener {
6869 0 ,
6970 block.startOffset - 1 ,
7071 " ..." ,
71- null ,
72- true ,
73- )
72+ FoldingGroup .newGroup( " before block " ) ,
73+ false ,
74+ )?. apply { isExpanded = false }
7475 createFoldRegion(
7576 block.endOffset,
7677 block.containingFile.textLength,
7778 " ..." ,
78- null ,
79- true ,
80- )
79+ FoldingGroup .newGroup( " after block " ) ,
80+ false ,
81+ )?. apply { isExpanded = false }
8182 }
8283 }
8384 }
You can’t perform that action at this time.
0 commit comments