Skip to content

Commit 551d815

Browse files
committed
feat(devins-cpp): add support for IDEA version 222 OCLanguage in test discovery
1 parent 49e2ae6 commit 551d815

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cpp/src/222/main/kotlin/cc/unitmesh/cpp/provider/testing/CppAutoTestService.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ class CppAutoTestService : AutoTestService() {
2020
// TODO in Cpp233 and Cpp222 the RunProfile is different, maybe we can use the same RunProfile in future
2121
override fun runConfigurationClass(project: Project): Class<out RunProfile>? = null
2222
override fun isApplicable(element: PsiElement): Boolean = element.language is OCLanguage
23+
override fun psiFileClass(project: Project): Class<out PsiElement> = OCFile::class.java
2324

2425
override fun findOrCreateTestFile(sourceFile: PsiFile, project: Project, element: PsiElement): TestFileContext? {
2526
// 1. check project root test folder, if not exist, create it

0 commit comments

Comments
 (0)