From 562686e5f0a037d29f3c97069c06a70a779a2ff9 Mon Sep 17 00:00:00 2001 From: Scott Wells Date: Thu, 12 Dec 2024 10:33:50 -0600 Subject: [PATCH] This properly refreshes the bundled JSON schema file in VFS before it is used. --- .../jsonSchema/AbstractLSPJsonSchemaFileSystemProvider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/redhat/devtools/lsp4ij/settings/jsonSchema/AbstractLSPJsonSchemaFileSystemProvider.java b/src/main/java/com/redhat/devtools/lsp4ij/settings/jsonSchema/AbstractLSPJsonSchemaFileSystemProvider.java index 3fc793a6f..5e9f94fe5 100644 --- a/src/main/java/com/redhat/devtools/lsp4ij/settings/jsonSchema/AbstractLSPJsonSchemaFileSystemProvider.java +++ b/src/main/java/com/redhat/devtools/lsp4ij/settings/jsonSchema/AbstractLSPJsonSchemaFileSystemProvider.java @@ -42,7 +42,7 @@ public final VirtualFile getSchemaFile() { jsonSchemaFile = jsonSchemaFileUrl != null ? VirtualFileManager.getInstance().findFileByUrl(jsonSchemaFileUrl) : null; // Make sure that the IDE is using the absolute latest version of the JSON schema if (jsonSchemaFile != null) { - jsonSchemaFile.refresh(true, false); + jsonSchemaFile.refresh(true, false, () -> jsonSchemaFile.refresh(false, false)); } } return jsonSchemaFile;