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 d68fea323..92d132b3e 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,16 +196,16 @@ public class SchemaBasedYamlASTReconciler implements YamlASTReconciler { if (typeUtil.isAtomic(type)) { SchemaContextAware parserProvider = typeUtil.getValueParser(type); if (parserProvider!=null) { - parserProvider.safeWithContext(schemaContext).ifPresent(parser -> { - if (parser.longRunning()) { - slowDelayedConstraints.add(() -> { + delayedConstraints.add(() -> { + parserProvider.safeWithContext(schemaContext).ifPresent(parser -> { + if (parser.longRunning()) { + slowDelayedConstraints.add(() -> { + parse(ast, node, type, parser); + }); + } else { parse(ast, node, type, parser); - }); - } else { - delayedConstraints.add(() -> { - parse(ast, node, type, parser); - }); - } + } + }); }); } } else {