Do not pollute IDEA log with fake script dependencies

This commit is contained in:
Ilya Chernikov
2017-03-02 14:50:52 +01:00
parent 3060ecc066
commit ffe3453937
@@ -43,7 +43,9 @@ class KotlinScriptExternalImportsProvider(val project: Project, private val scri
?: if (cacheOfNulls.contains(path)) null
else scriptDefinitionProvider.findScriptDefinition(file)?.getDependenciesFor(file, project, null)
.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 {
if (this == null) {
cacheOfNulls.add(path)