-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ICTL-975] Adjusting the plugin structure to enable different languag…
…es dependency (#264) * New level of abstraction for Psi Components * klint and documentation * klint * fixed elephant logo by deleting the plugin depandancy on Kotlin * fix: changes after the review * fix: deleted validate line + klint * fix: changed log * fix: reordering of classes * Delete src/main/kotlin/org/jetbrains/research/testspark/helpers/psiHelpers/KotlinPsiHelper.kt * feat: implemented and integrated ClassType * fix: getSurroundingLine function * separated Psi classes to different files * last refactoring * merge conflict solved * first version of Kotlin PSI implementation * klint * bugs fixed * ktint * merge * preliminary changes * changing the plugin.xml structure * something is still bad * something is working * added gradle * fix: working gradle, project can run, but plugin.xml does not work * new version of plugin.xml * the version that should work but it is not * deleted unnecessary imports * implementationClass * DONE! Thanks god * feat: documentation * klint * merge * small fix * fix: gradle tasks failure * fix: verification only for rootProject * small fix * disable verification * fixed verification * deleted unnecessary line * fix: after thr review * klint * deleted unnecessary elvis operator * fixed the pluginid * Update OpenAIRequestManager.kt * resolved --------- Co-authored-by: Arkadii Sapozhnikov <[email protected]> Co-authored-by: Arkadii Sapozhnikov <[email protected]>
- Loading branch information
1 parent
404b88e
commit 58895eb
Showing
40 changed files
with
409 additions
and
171 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
plugins { | ||
kotlin("jvm") | ||
id("org.jetbrains.intellij") | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
implementation(kotlin("stdlib")) | ||
|
||
implementation(project(":langwrappers")) // Interfaces that cover language-specific logic | ||
implementation(project(":core")) | ||
} | ||
|
||
intellij { | ||
rootProject.properties["platformVersion"]?.let { version.set(it.toString()) } | ||
plugins.set(listOf("java")) | ||
} | ||
|
||
tasks.named("verifyPlugin") { enabled = false } | ||
tasks.named("runIde") { enabled = false } | ||
tasks.named("runPluginVerifier") { enabled = false } | ||
|
||
tasks { | ||
buildSearchableOptions { | ||
enabled = false | ||
} | ||
} | ||
|
||
kotlin { | ||
jvmToolchain(rootProject.properties["jvmToolchainVersion"].toString().toInt()) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
java/src/main/kotlin/org/jetbrains/research/testspark/java/JavaPsiHelperProvider.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package org.jetbrains.research.testspark.java | ||
|
||
import com.intellij.psi.PsiFile | ||
import org.jetbrains.research.testspark.langwrappers.PsiHelperProvider | ||
|
||
class JavaPsiHelperProvider : PsiHelperProvider { | ||
override fun getPsiHelper(file: PsiFile) = JavaPsiHelper(file) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<!--Register the extension point, to specify a custom PsiHelperProvider for the Java language.--> | ||
<idea-plugin> | ||
<extensions defaultExtensionNs="org.jetbrains.research.testgenie"> | ||
<psiHelperProvider | ||
language="JAVA" | ||
implementationClass="org.jetbrains.research.testspark.java.JavaPsiHelperProvider" | ||
/> | ||
</extensions> | ||
</idea-plugin> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
plugins { | ||
kotlin("jvm") | ||
id("org.jetbrains.intellij") | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
implementation(kotlin("stdlib")) | ||
|
||
implementation(project(":langwrappers")) // Interfaces that cover language-specific logic | ||
implementation(project(":core")) | ||
} | ||
|
||
intellij { | ||
rootProject.properties["platformVersion"]?.let { version.set(it.toString()) } | ||
plugins.set(listOf("java", "org.jetbrains.kotlin")) | ||
} | ||
|
||
tasks.named("verifyPlugin") { enabled = false } | ||
tasks.named("runIde") { enabled = false } | ||
tasks.named("runPluginVerifier") { enabled = false } | ||
|
||
tasks { | ||
buildSearchableOptions { | ||
enabled = false | ||
} | ||
} | ||
|
||
kotlin { | ||
jvmToolchain(rootProject.properties["jvmToolchainVersion"].toString().toInt()) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
kotlin/src/main/kotlin/org/jetbrains/research/testspark/kotlin/KotlinPsiHelperProvider.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package org.jetbrains.research.testspark.kotlin | ||
|
||
import com.intellij.psi.PsiFile | ||
import org.jetbrains.research.testspark.langwrappers.PsiHelperProvider | ||
|
||
class KotlinPsiHelperProvider : PsiHelperProvider { | ||
override fun getPsiHelper(file: PsiFile) = KotlinPsiHelper(file) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<!--Register the extension point, to specify a custom PsiHelperProvider for the Kotlin language.--> | ||
<idea-plugin> | ||
<extensions defaultExtensionNs="org.jetbrains.research.testgenie"> | ||
<psiHelperProvider | ||
implementationClass="org.jetbrains.research.testspark.kotlin.KotlinPsiHelperProvider" | ||
language="kotlin"/> | ||
</extensions> | ||
</idea-plugin> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
plugins { | ||
kotlin("jvm") | ||
id("org.jetbrains.intellij") | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
// Add any other repositories you need | ||
} | ||
|
||
dependencies { | ||
implementation(kotlin("stdlib")) | ||
|
||
implementation(project(":core")) | ||
} | ||
|
||
intellij { | ||
rootProject.properties["platformVersion"]?.let { version.set(it.toString()) } | ||
plugins.set(listOf("java")) | ||
downloadSources.set(true) | ||
} | ||
|
||
tasks.named("verifyPlugin") { enabled = false } | ||
tasks.named("runIde") { enabled = false } | ||
tasks.named("runPluginVerifier") { enabled = false } | ||
|
||
kotlin { | ||
jvmToolchain(rootProject.properties["jvmToolchainVersion"].toString().toInt()) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.