override fun beforeDocumentChangeNonBulk()

in src/main/kotlin/org/jetbrains/plugins/feature/suggester/listeners/DocumentActionsListener.kt [22:32]


    override fun beforeDocumentChangeNonBulk(event: DocumentEvent) {
        // Store in a weak reference, otherwise PsiDocumentManagerImplTest.testDoNotLeakForgottenUncommittedDocument will fail
        val eventRef = WeakReference(event)
        runInEdt {
            handleDocumentAction(
                eventRef = eventRef,
                textInsertedActionConstructor = ::BeforeEditorTextInsertedAction,
                textRemovedActionConstructor = ::BeforeEditorTextRemovedAction
            )
        }
    }