Expand description
Configuration is stored in json files like this
{
"file":"file.uvl",
"config":{
"submodels.subfile":{
"subfeature":true
}
"someFeatures":true,
"someOtherFeature":1.0,
"someFeature.attribute1":"test"
}
}
This representation is very compact since it avoids rewriting long import prefixes but slightly more complex than just using the direct raw path to external symbols. JSON parsing is done with tree-sitter and not serde because there currently is no solid serde json crate for span information and partial parsing so error reporting becomes impossible.
Structsยง
- This defines a config for the corresponding file
- State ๐
Enumsยง
- This enum is used for storing a cardinality of a feature
- This Enum is used for Serialization and Deserialization of a Config
- This Enum stores the value configured by the user or loaded from a json config File.
- JSON
Item ๐
Traitsยง
- Overlaps ๐
Functionsยง
- This function helps define the context for a completion.
- estimate_
json_ ๐item - find_
json_ ๐key Try to extract the json value under key from node, - json_
path ๐find the path of the object containing node(ignores arrays) - offset ๐
- opt_
configs ๐Prase a configuration object - parse_
json_ ๐key - selected_
json_ ๐object select the nearest object containing pos - visit_
file ๐ - visit_
root ๐