Skip to content

Commit dddf687

Browse files
author
Oliver Nybroe
committed
fix: Indexers touching extension points
1 parent 1ead810 commit dddf687

File tree

3 files changed

+5
-10
lines changed

3 files changed

+5
-10
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
### Added
88
- Added pest file creation support
99

10+
### Fixed
11+
- Remove test sources filter lookup, as it breaks others plugins
12+
1013
## 1.9.3 - 2023-05-31
1114

1215
### Fixed

gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
pluginGroup = com.pestphp
55
pluginName = PEST PHP
6-
pluginVersion = 1.10.0-EAP.1
6+
pluginVersion = 1.10.0
77

88
# See https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
99
# for insight into build numbers and IntelliJ Platform versions.
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,11 @@
11
package com.pestphp.pest
22

3-
import com.intellij.openapi.project.ProjectManager
4-
import com.intellij.openapi.roots.TestSourcesFilter
53
import com.intellij.openapi.vfs.VirtualFile
64
import com.intellij.util.indexing.DefaultFileTypeSpecificInputFilter
75
import com.jetbrains.php.lang.PhpFileType
86

97
open class PhpTestFolderInputFilter : DefaultFileTypeSpecificInputFilter(PhpFileType.INSTANCE) {
108
override fun acceptInput(file: VirtualFile): Boolean {
11-
if (file.path.contains(""".*?test.*?/.*\..*""".toRegex())) {
12-
return true
13-
}
14-
15-
return ProjectManager.getInstance().openProjects.any {
16-
TestSourcesFilter.isTestSources(file, it)
17-
}
9+
return file.path.contains(""".*?test.*?/.*\..*""".toRegex());
1810
}
1911
}

0 commit comments

Comments
 (0)