Skip to content

Commit

Permalink
fix(activity-detection): detect activity in automatically opened editors
Browse files Browse the repository at this point in the history
  • Loading branch information
bluelhf committed Apr 14, 2023
1 parent 465f407 commit 1af604a
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class CaretMoveListener(service: TestaustimeProjectService) : com.intellij.opena
}

init {
EditorFactory.getInstance().allEditors.forEach { it.caretModel.addCaretListener(this) }
EditorFactory.getInstance().addEditorFactoryListener(object : EditorFactoryListener {
override fun editorCreated(event: EditorFactoryEvent) {
event.editor.caretModel.addCaretListener(this@CaretMoveListener)
Expand Down

0 comments on commit 1af604a

Please sign in to comment.