提交 a2d284c7 编写于 作者: N Natalia Selezneva

ScriptDefinitionsManager shouldn't be ready if definitions aren't initialized yet (KT-32554)

Otherwise this can lead to wrong script definition detection on project opening
^KT-32554 Fixed
上级 e40cdef2
......@@ -147,7 +147,10 @@ class ScriptDefinitionsManager(private val project: Project) : LazyScriptDefinit
}
fun isReady(): Boolean {
return definitionsBySource.keys.all { source ->
if (definitions == null) {
reloadScriptDefinitions()
}
return definitions != null && definitionsBySource.keys.all { source ->
// TODO: implement another API for readiness checking
(source as? ScriptDefinitionContributor)?.isReady() != false
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册