override fun invoke()

in src/main/kotlin/mobi/hsz/idea/gitignore/codeInspection/IgnoreSyntaxEntryFix.kt [20:29]


    override fun invoke(project: Project, file: PsiFile, editor: Editor?, startElement: PsiElement, endElement: PsiElement) {
        if (startElement is IgnoreSyntax) {
            editor?.run {
                startElement.value.let {
                    selectionModel.setSelection(it.textOffset, it.textOffset + it.textLength)
                }
                CodeCompletionHandlerBase(CompletionType.BASIC).invokeCompletion(project, this)
            }
        }
    }