diff --git a/build.gradle.kts b/build.gradle.kts index 996b08c1..39eee5a9 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -19,7 +19,7 @@ dependencies { group = "com.smallcloud" -version = getVersionString("1.2.5") +version = getVersionString("1.2.6") repositories { mavenCentral() diff --git a/src/main/kotlin/com/smallcloud/refactai/lsp/LSPProcessHolder.kt b/src/main/kotlin/com/smallcloud/refactai/lsp/LSPProcessHolder.kt index bf972596..559df725 100644 --- a/src/main/kotlin/com/smallcloud/refactai/lsp/LSPProcessHolder.kt +++ b/src/main/kotlin/com/smallcloud/refactai/lsp/LSPProcessHolder.kt @@ -25,6 +25,7 @@ import java.nio.file.StandardCopyOption import java.util.concurrent.Future import java.util.concurrent.TimeUnit import kotlin.io.path.Path +import kotlin.io.path.deleteIfExists import com.smallcloud.refactai.account.AccountManager.Companion.instance as AccountManager import com.smallcloud.refactai.io.InferenceGlobalContext.Companion.instance as InferenceGlobalContext @@ -99,6 +100,7 @@ class LSPProcessHolder: Disposable { } else { val path = Paths.get(BIN_PATH) path.parent.toFile().mkdirs() + path.deleteIfExists() Files.copy(input, path, StandardCopyOption.REPLACE_EXISTING) setExecutable(path.toFile()) }