Skip to content

Commit

Permalink
fix: D2Viewer must implement DumbAware
Browse files Browse the repository at this point in the history
Close #2
  • Loading branch information
develar committed Jan 4, 2024
1 parent dcb0774 commit 7fe9d91
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/kotlin/org/jetbrains/plugins/d2/editor/D2Viewer.kt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import com.intellij.openapi.fileEditor.FileEditor
import com.intellij.openapi.fileEditor.FileEditorLocation
import com.intellij.openapi.fileEditor.FileEditorState
import com.intellij.openapi.fileEditor.FileEditorStateLevel
import com.intellij.openapi.project.DumbAware
import com.intellij.openapi.project.Project
import com.intellij.openapi.util.Disposer
import com.intellij.openapi.util.UserDataHolderBase
Expand Down Expand Up @@ -64,7 +65,7 @@ internal data class D2FileEditorState(@JvmField var theme: D2Theme?, @JvmField v
internal class D2Viewer(
val project: Project,
private val file: VirtualFile
) : UserDataHolderBase(), FileEditor {
) : UserDataHolderBase(), FileEditor, DumbAware {
private val dispatcher = EventDispatcher.create(PropertyChangeListener::class.java)

val renderManager: RenderManager
Expand Down

0 comments on commit 7fe9d91

Please sign in to comment.