Do not pollute IDEA log with fake script dependencies
This commit is contained in:
+3
-1
@@ -43,7 +43,9 @@ class KotlinScriptExternalImportsProvider(val project: Project, private val scri
|
|||||||
?: if (cacheOfNulls.contains(path)) null
|
?: if (cacheOfNulls.contains(path)) null
|
||||||
else scriptDefinitionProvider.findScriptDefinition(file)?.getDependenciesFor(file, project, null)
|
else scriptDefinitionProvider.findScriptDefinition(file)?.getDependenciesFor(file, project, null)
|
||||||
.apply {
|
.apply {
|
||||||
log.info("[kts] new cached deps for $path: ${this?.classpath?.joinToString(File.pathSeparator)}")
|
if (this != null) {
|
||||||
|
log.info("[kts] new cached deps for $path: ${this.classpath.joinToString(File.pathSeparator)}")
|
||||||
|
}
|
||||||
cacheLock.write {
|
cacheLock.write {
|
||||||
if (this == null) {
|
if (this == null) {
|
||||||
cacheOfNulls.add(path)
|
cacheOfNulls.add(path)
|
||||||
|
|||||||
Reference in New Issue
Block a user