mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-05 08:06:56 +07:00
[fus] IJPL-149278 Report file schema usages correctly computing value in NBRA
GitOrigin-RevId: 2b8639e9ab2cda0cfadfff9e4140b97921a38ddf
This commit is contained in:
committed by
intellij-monorepo-bot
parent
a0454e5187
commit
514a6af057
@@ -44,7 +44,7 @@ internal open class ConfigFileTypeUsageDescriptor(private val libraryMaven: Stri
|
||||
|
||||
file.getUserData(SCHEMA_KEY)?.let { return it == libraryMaven }
|
||||
|
||||
val mavenCoords = ReadAction.compute<String, Throwable> {
|
||||
val mavenCoords = ReadAction.nonBlocking<String> {
|
||||
val module = try {
|
||||
ModuleUtilCore.findModuleForFile(file, project)
|
||||
}
|
||||
@@ -53,7 +53,7 @@ internal open class ConfigFileTypeUsageDescriptor(private val libraryMaven: Stri
|
||||
}
|
||||
|
||||
ALL_MAVEN.find { hasLibraryJar(module, it) } ?: ""
|
||||
}
|
||||
}.executeSynchronously()
|
||||
|
||||
file.putUserData(SCHEMA_KEY, mavenCoords)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user