Search in sources :

Example 1 with SNodeDynamicSchemaContext

use of org.springframework.ide.vscode.commons.yaml.schema.SNodeDynamicSchemaContext in project sts4 by spring-projects.

the class YTypeAssistContext method getSchemaContext.

protected DynamicSchemaContext getSchemaContext() {
    try {
        SNode contextNode = getContextNode();
        YamlPath fullContextPath = contextPath.prepend(YamlPathSegment.valueAt(documentSelector));
        return new SNodeDynamicSchemaContext(contextNode, fullContextPath);
    } catch (Exception e) {
        Log.log(e);
        return DynamicSchemaContext.NULL;
    }
}
Also used : YamlPath(org.springframework.ide.vscode.commons.yaml.path.YamlPath) SNode(org.springframework.ide.vscode.commons.yaml.structure.YamlStructureParser.SNode) SNodeDynamicSchemaContext(org.springframework.ide.vscode.commons.yaml.schema.SNodeDynamicSchemaContext) ValueParseException(org.springframework.ide.vscode.commons.util.ValueParseException)

Aggregations

ValueParseException (org.springframework.ide.vscode.commons.util.ValueParseException)1 YamlPath (org.springframework.ide.vscode.commons.yaml.path.YamlPath)1 SNodeDynamicSchemaContext (org.springframework.ide.vscode.commons.yaml.schema.SNodeDynamicSchemaContext)1 SNode (org.springframework.ide.vscode.commons.yaml.structure.YamlStructureParser.SNode)1