We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 407a45c commit 51dc43eCopy full SHA for 51dc43e
java/src/main/kotlin/cc/unitmesh/idea/actions/AutoCrudAction.kt
@@ -26,7 +26,7 @@ class AutoCrudAction : ChatBaseIntention() {
26
if (file.language !is JavaLanguage) return false
27
28
val isEnvironmentAvailable = super.isAvailable(project, editor, file)
29
- return isEnvironmentAvailable && editor.selectionModel?.hasSelection() == true
+ return isEnvironmentAvailable && editor.selectionModel.hasSelection()
30
}
31
32
override fun invoke(project: Project, editor: Editor?, file: PsiFile?) {
0 commit comments