Skip to content

Commit a85a01f

Browse files
committed
fix: filter non-commands
1 parent 7c5f80c commit a85a01f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
package com.github.tempest.framework.console.run
22

3+
import com.github.tempest.framework.php.getConsoleCommandName
34
import com.intellij.execution.lineMarker.RunLineMarkerContributor
45
import com.intellij.psi.PsiElement
56
import com.jetbrains.php.lang.psi.elements.Method
67

78
class ConsoleCommandLineMarkerProvider : RunLineMarkerContributor() {
89
override fun getInfo(element: PsiElement) = when {
910
element !is Method -> null
11+
element.getConsoleCommandName() == null -> null
1012
else -> Info(TempestRunTargetAction(element))
1113
}
1214
}

0 commit comments

Comments
 (0)