1+ @file:Suppress(" RemoveUnnecessaryParentheses" )
2+
13package com.github.mr3zee.kotlinPlugins
24
35import com.intellij.openapi.Disposable
@@ -229,7 +231,7 @@ class KotlinPluginsStorageService(
229231
230232 if (cacheMisses.flatMap { it.value.values }.any { ! it }) {
231233 logger.debug(" Actualize plugins job self-launch: ${cacheMisses.entries.joinToString { (k, v) -> " {$k : [${v.entries.joinToString { (k1, v1) -> " [$k1 -> $v1 ]" }} ]" }} " )
232- actualizePlugins( )
234+ actualizeRequestQueue.trySend( Unit )
233235 } else if (changed.get()) {
234236 invalidateKotlinPluginsCache()
235237 }
@@ -247,7 +249,7 @@ class KotlinPluginsStorageService(
247249 val map = pluginsCache.getOrPut(kotlinVersion) { ConcurrentHashMap () }
248250 val pluginMap = map.getOrPut(versioned.descriptor) { ConcurrentHashMap () }
249251
250- val (locatedVersion, path) = if (versioned.version == null ) {
252+ val (locatedVersion, path) = ( if (versioned.version == null ) {
251253 findJarPath(versioned, kotlinVersion)?.also { (version, path) ->
252254 pluginMap.compute(version) { _, old ->
253255 when {
@@ -279,7 +281,7 @@ class KotlinPluginsStorageService(
279281 versioned.version
280282 } to path
281283
282- } ? : (null to null )
284+ }) ? : (null to null )
283285
284286 logger.debug(" Requested version is ${versioned.version} for ${versioned.descriptor} , located version: $locatedVersion , path: $path " )
285287
0 commit comments