Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
acharneski committed Oct 13, 2024
1 parent 02fa262 commit 5d9dcb9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 13 deletions.
10 changes: 2 additions & 8 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
fun properties(key: String) = providers.gradleProperty(key).get()

plugins {
id("java") // Java support
id("java")
kotlin("jvm") version "2.0.20"
id("org.jetbrains.intellij.platform") version "2.1.0"
id("org.jetbrains.changelog") version "2.2.1"
Expand All @@ -21,12 +21,9 @@ version = properties("pluginVersion")

repositories {
mavenCentral()
// IntelliJ Platform Gradle Plugin Repositories Extension - read more: https://plugins.jetbrains.com/docs/intellij/tools-intellij-platform-gradle-plugin-repositories-extension.html
intellijPlatform {
defaultRepositories()
}
// maven(url = "https://packages.jetbrains.team/maven/p/ij/intellij-dependencies")
// maven(url = "https://packages.jetbrains.team/maven/p/iuia/qa-automation-maven")
}

val jetty_version = "11.0.24"
Expand Down Expand Up @@ -65,16 +62,12 @@ dependencies {

implementation(group = "org.slf4j", name = "slf4j-api", version = slf4j_version)

// testImplementation(group = "com.squareup.okhttp3", name = "okhttp", version = "4.12.0")
testImplementation(platform("org.junit:junit-bom:5.11.2"))
testImplementation("org.junit.jupiter:junit-jupiter-api")
testImplementation("org.junit.jupiter:junit-jupiter-engine")
testImplementation("org.junit.vintage:junit-vintage-engine")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")

// testImplementation("org.seleniumhq.selenium:selenium-java:4.15.0")
// testImplementation(sourceSets.main.get().output)

testImplementation(group = "com.intellij.remoterobot", name = "remote-robot", version = remoterobot_version)
testImplementation(group = "com.intellij.remoterobot", name = "remote-fixtures", version = remoterobot_version)
testImplementation(
Expand Down Expand Up @@ -114,6 +107,7 @@ tasks {

jar {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
exclude("org/jetbrains/**")
}


Expand Down
2 changes: 2 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,5 @@ org.gradle.caching = true
systemProp.org.gradle.unsafe.kotlin.assignment = true
org.jetbrains.dokka.experimental.gradle.pluginMode=V2Enabled
org.jetbrains.dokka.experimental.gradle.pluginMode.noWarn=true
# Disable deprecated features warnings
org.gradle.warning.mode=none
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import com.github.simiacryptus.aicoder.util.BrowseUtil.browse
import com.intellij.openapi.actionSystem.AnAction
import com.intellij.openapi.actionSystem.AnActionEvent
import com.intellij.openapi.actionSystem.CommonDataKeys
import com.intellij.openapi.actionSystem.DataKey
import com.intellij.openapi.actionSystem.PlatformDataKeys
import com.intellij.openapi.diagnostic.Logger
import com.intellij.openapi.vcs.VcsDataKeys
import com.intellij.openapi.vfs.VirtualFile
Expand Down Expand Up @@ -112,7 +112,8 @@ class ChatWithCommitAction : AnAction() {
}

override fun update(e: AnActionEvent) {
e.presentation.isEnabledAndVisible = e.getData(DataKey.create<String>("VCS")) != "Git"
e.presentation.isEnabledAndVisible = e.getData(PlatformDataKeys.PROJECT) != null &&
e.getData(VcsDataKeys.VCS)?.name != "Git"
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -937,7 +937,7 @@ object UITools {
//pane.isComponentOrientationLeftToRight = true
val dialog = pane.createDialog(parentComponent, title)
pane.selectInitialValue()
dialog.show()
dialog.isVisible = true
dialog.dispose()
val value = pane.inputValue
return if (value == JOptionPane.UNINITIALIZED_VALUE) null else value
Expand All @@ -950,5 +950,4 @@ object UITools {
showOptionDialog(formBuilder.panel, "Dismiss", title = "Error", modal = true)
}

}

}

0 comments on commit 5d9dcb9

Please sign in to comment.