mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-09-01 15:32:11 +08:00
fix(jetbrains): address telemetry review feedback
This commit is contained in:
-2
@@ -190,7 +190,6 @@ class KiloBackendCliManager(
|
||||
install(proc)
|
||||
|
||||
val stderr = StringBuilder()
|
||||
val stdout = StringBuilder()
|
||||
|
||||
Thread({
|
||||
BufferedReader(InputStreamReader(proc.errorStream)).use { reader ->
|
||||
@@ -204,7 +203,6 @@ class KiloBackendCliManager(
|
||||
BufferedReader(InputStreamReader(proc.inputStream)).use { reader ->
|
||||
for (line in reader.lineSequence()) {
|
||||
log.info("CLI stdout: $line")
|
||||
synchronized(stdout) { stdout.appendLine(line) }
|
||||
val match = PORT_REGEX.find(line)
|
||||
if (match != null) {
|
||||
val p = match.groupValues[1].toInt()
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package ai.kilocode
|
||||
|
||||
import com.intellij.ide.plugins.cl.PluginAwareClassLoader
|
||||
import com.intellij.ide.plugins.PluginManagerCore
|
||||
import com.intellij.openapi.extensions.PluginDescriptor
|
||||
import com.intellij.openapi.extensions.PluginId
|
||||
|
||||
@@ -9,12 +9,7 @@ object KiloPlugin {
|
||||
|
||||
val id: PluginId = PluginId.getId(ID)
|
||||
|
||||
fun descriptor(): PluginDescriptor? {
|
||||
val loader = KiloPlugin::class.java.classLoader as? PluginAwareClassLoader ?: return null
|
||||
val descriptor = loader.pluginDescriptor
|
||||
if (descriptor.pluginId != id) return null
|
||||
return descriptor
|
||||
}
|
||||
fun descriptor(): PluginDescriptor? = PluginManagerCore.getPlugin(id)
|
||||
|
||||
fun version() = descriptor()?.version
|
||||
|
||||
|
||||
Reference in New Issue
Block a user