Skip to content

Commit 9401013

Browse files
committed
fix(editor): lower minDevinLineThreshold to 1 and clear blockViews
1 parent 9d144e6 commit 9401013

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

core/src/main/kotlin/cc/unitmesh/devti/sketch/SketchToolWindow.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,9 @@ class SketchToolWindow(val project: Project, val editor: Editor?, private val sh
197197
historyPanel.add(it.getComponent())
198198
}
199199

200+
blockViews.clear()
200201
myList.removeAll()
202+
201203
this.revalidate()
202204
this.repaint()
203205
}

core/src/main/kotlin/cc/unitmesh/devti/sketch/ui/code/CodeHighlightSketch.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ open class CodeHighlightSketch(
4747
val editorLineThreshold: Int = 6
4848
) : JBPanel<CodeHighlightSketch>(BorderLayout()), DataProvider, LangSketch, Disposable {
4949
private val devinLineThreshold = 10
50-
private val minDevinLineThreshold = 5
50+
private val minDevinLineThreshold = 1
5151
private var isDevIns = false
5252

5353
private var textLanguage: String? = null

0 commit comments

Comments
 (0)