mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
WEB-33845 File type detection on EDT via JsonSchemaVfsListener
temporarily check only by file extension it is very unlikely that json schemas will have non-json extension
This commit is contained in:
@@ -95,7 +95,7 @@ public class JsonSchemaVfsListener extends BulkVirtualFileListenerAdapter {
|
||||
}
|
||||
|
||||
protected void onFileChange(@NotNull final VirtualFile schemaFile) {
|
||||
if (JsonFileType.INSTANCE.equals(schemaFile.getFileType())) {
|
||||
if (JsonFileType.DEFAULT_EXTENSION.equals(schemaFile.getExtension())) {
|
||||
myDirtySchemas.add(schemaFile);
|
||||
myUpdater.queue(myRunnable);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user