-
Notifications
You must be signed in to change notification settings - Fork 327
Closed
Description
Describe the bug
Aliases are not resolved after a certain, seemingly arbitrary, point in a large yaml file. This does not appear to be a function of depth of aliases but rather of number of aliases in the file.
Expected Behavior
redhat.vscode-yaml VSCode extension can process aliases in a large yaml file equally across the entire file.
Current Behavior
Tested using redhad.vscode-yaml VSCode extension. A large file with N independent aliases will only resolve the properties with the first N entries.
Steps to Reproduce
This is a bit complicated, and sorry that it depends on the vscode extension.
- Install
redhad.vscode-yamlin vscode. - Create a large yaml file with a lot of objects including a known field (here's the one I used)
- Add a schema that ensures the field is required to
yaml.schemas(in the above case, "name" is inherited fromfooon all 2000 objects).
{
"id": "foo-yaml-schema#",
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "Schema for a foo.yaml",
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/foo"
},
"definitions": {
"foo": {
"type": "object",
"required": [":name"],
"additionalProperties": false,
"properties": {
":name": { "type": "string" }
}
}
}
}- View the file in vscode:
Environment
- Windows
- Mac
- Linux
- other (please specify)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels