in src/main/kotlin/org/jetbrains/tinygoplugin/services/TinyGoLibraryProvider.kt [49:59]
override fun getRootsToWatch(project: Project): Collection<VirtualFile> {
val settings = project.tinyGoConfiguration()
if (!settings.enabled) {
thisLogger().debug("cached GOROOT not presented because TinyGo is disabled")
return emptyList()
}
val tinyGoCachedGoRoot = settings.cachedGoRoot
val tinyGoCachedGoRootSources = tinyGoCachedGoRoot.srcDir ?: return emptyList()
thisLogger().debug("cached GOROOT presented at ${project.tinyGoConfiguration().cachedGoRoot}")
return listOf(tinyGoCachedGoRootSources)
}