diff --git a/headless-services/commons/commons-yaml/src/main/java/org/springframework/ide/vscode/commons/yaml/reconcile/SchemaBasedYamlASTReconciler.java b/headless-services/commons/commons-yaml/src/main/java/org/springframework/ide/vscode/commons/yaml/reconcile/SchemaBasedYamlASTReconciler.java index 92d132b3e..910c8ff29 100644 --- a/headless-services/commons/commons-yaml/src/main/java/org/springframework/ide/vscode/commons/yaml/reconcile/SchemaBasedYamlASTReconciler.java +++ b/headless-services/commons/commons-yaml/src/main/java/org/springframework/ide/vscode/commons/yaml/reconcile/SchemaBasedYamlASTReconciler.java @@ -196,6 +196,7 @@ public class SchemaBasedYamlASTReconciler implements YamlASTReconciler { if (typeUtil.isAtomic(type)) { SchemaContextAware parserProvider = typeUtil.getValueParser(type); if (parserProvider!=null) { + //Take care not to execute parserProvider early just to check how long it should be delayed. delayedConstraints.add(() -> { parserProvider.safeWithContext(schemaContext).ifPresent(parser -> { if (parser.longRunning()) {