Write refined classpath back to compiler config in core env

- fixes refining with classpath updates
This commit is contained in:
Ilya Chernikov
2023-05-24 09:30:49 +02:00
committed by Space Team
parent 699ef5490b
commit 4fe3e875fa
@@ -364,6 +364,8 @@ class KotlinCoreEnvironment private constructor(
}
}
configuration.addAll(CLIConfigurationKeys.CONTENT_ROOTS, contentRoots - configuration.getList(CLIConfigurationKeys.CONTENT_ROOTS))
return rootsIndex.addNewIndexForRoots(newRoots)?.let { newIndex ->
updateClasspathFromRootsIndex(newIndex)
newIndex.indexedRoots.mapNotNull { (file) ->