File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
cpp/src/main/kotlin/cc/unitmesh/cpp/provider/testing
src/main/kotlin/cc/unitmesh/devti/provider Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -11,12 +11,12 @@ import com.intellij.openapi.project.guessProjectDir
11
11
import com.intellij.openapi.vfs.VirtualFile
12
12
import com.intellij.psi.PsiElement
13
13
import com.intellij.psi.PsiFile
14
- import com.jetbrains.cidr.cpp.execution.CMakeAppRunConfiguration
15
14
import com.jetbrains.cidr.lang.OCLanguage
16
15
import com.jetbrains.cidr.lang.psi.OCFunctionDeclaration
17
16
18
17
class CppWriteTestService : WriteTestService () {
19
- override fun runConfigurationClass (project : Project ): Class <out RunProfile > = CMakeAppRunConfiguration ::class .java
18
+ // TODO in Cpp233 and Cpp222 the RunProfile is different, maybe we can use the same RunProfile in future
19
+ override fun runConfigurationClass (project : Project ): Class <out RunProfile >? = null
20
20
21
21
override fun isApplicable (element : PsiElement ): Boolean {
22
22
return element.language is OCLanguage
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ abstract class WriteTestService : LazyExtensionInstance<WriteTestService>() {
40
40
* @param project The project for which to retrieve the run configuration class.
41
41
* @return The run configuration class for the project.
42
42
*/
43
- abstract fun runConfigurationClass (project : Project ): Class <out RunProfile >
43
+ abstract fun runConfigurationClass (project : Project ): Class <out RunProfile >?
44
44
abstract fun isApplicable (element : PsiElement ): Boolean
45
45
/* *
46
46
* Finds or creates a test file for the given source file, project, and element.
You can’t perform that action at this time.
0 commit comments