提交 32be3cc7 编写于 作者: I Ilya Kirillov

FIR IDE: do not require read action to collect diagnostics

上级 58a5f4f9
......@@ -63,10 +63,8 @@ internal class FileStructure(
fun getAllDiagnosticsForFile(diagnosticCheckerFilter: DiagnosticCheckerFilter): Collection<FirPsiDiagnostic<*>> {
val structureElements = getAllStructureElements()
return moduleFileCache.firFileLockProvider.withReadLock(firFile) {
buildSet {
collectDiagnosticsFromStructureElements(structureElements, diagnosticCheckerFilter)
}
return buildSet {
collectDiagnosticsFromStructureElements(structureElements, diagnosticCheckerFilter)
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册