mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
JsonSchemaService.isSchemaFile requires read action
This commit is contained in:
@@ -75,7 +75,7 @@ public class JsonSchemaVfsListener extends BulkVirtualFileListenerAdapter {
|
||||
Collection<VirtualFile> scope = new HashSet<>(myDirtySchemas);
|
||||
myDirtySchemas.removeAll(scope);
|
||||
|
||||
Collection<VirtualFile> finalScope = ContainerUtil.filter(scope, file -> myService.isApplicableToFile(file) && myService.isSchemaFile(file));
|
||||
Collection<VirtualFile> finalScope = ReadAction.compute(() -> ContainerUtil.filter(scope, file -> myService.isApplicableToFile(file) && myService.isSchemaFile(file)));
|
||||
if (finalScope.isEmpty()) return;
|
||||
myProject.getMessageBus().syncPublisher(JSON_SCHEMA_CHANGED).run();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user