Skip to content

Commit 88d6921

Browse files
committed
fix(diagram): disable binary content update on document change
Commented out file.setBinaryContent to prevent updating binary content when the document changes.
1 parent ae5343d commit 88d6921

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exts/ext-diagram/src/241/main/kotlin/cc/unitmesh/diagram/editor/mermaid/MermaidPreviewFileEditor.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class MermaidPreviewFileEditor(private val project: Project, private val file: V
4949
init {
5050
document?.addDocumentListener(object : DocumentListener {
5151
override fun documentChanged(event: DocumentEvent) {
52-
file.setBinaryContent(event.document.text.toByteArray())
52+
// file.setBinaryContent(event.document.text.toByteArray())
5353
updateUml()
5454
}
5555
}, this)

0 commit comments

Comments
 (0)