File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
common/src/main/kotlin/spp/jetbrains/artifact/service Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ package spp.jetbrains.artifact.service
1818
1919import com.intellij.psi.PsiComment
2020import com.intellij.psi.PsiElement
21+ import spp.jetbrains.artifact.model.FunctionArtifact
2122import spp.jetbrains.artifact.service.define.AbstractSourceMarkerService
2223import spp.jetbrains.artifact.service.define.IArtifactTypeService
2324import spp.protocol.artifact.ArtifactType
@@ -50,7 +51,7 @@ object ArtifactTypeService : AbstractSourceMarkerService<IArtifactTypeService>()
5051 }
5152
5253 fun isFunction (element : PsiElement ): Boolean {
53- return getType(element) == ArtifactType .FUNCTION
54+ return element is FunctionArtifact || getType(element) == ArtifactType .FUNCTION
5455 }
5556
5657 fun isPython (element : PsiElement ): Boolean {
You can’t perform that action at this time.
0 commit comments