redhat-developer / redhat-developer/vscode-yaml
Unable to auto-complete the second block
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 829
- Forks
- 260
- Avg merge
- 5h 43m
- Merged PRs (30d)
- 1
Description
VSCode version: Version 1.36.1 (1.36.1)
Plugin version: 0.4.1
My schema is
{
"$id": "https://example.com/address.schema.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "poc",
"description": "poc",
"type": "object",
"properties": {
"name": {
"description": "name",
"type": "string"
},
"rules": {
"description": "rules",
"type": "array",
"items": {
"type": "object",
"properties": {
"method": {
"description": "method",
"type": "string",
"enum": ["GET", "POST"]
},
"path": {
"type": "string",
"description": "path"
}
},
"required": ["method", "path"]
}
}
},
"required": ["name", "rules"]
}
Settings is
{
"yaml.schemas": {
"./yaml.schema.json": "*.yaml"
}
}
It seems the auto-complete will not work on the second block
For example,
you type rules, vscode auto completes, and then you type name, nothing will show
you type name, vscode auto completes, and then you type rules, nothing will show

Maybe related: https://github.com/redhat-developer/vscode-yaml/issues/148#issuecomment-450652266
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue in VS Code 1.36.1 with plugin 0.4.1 using the schema and yaml.schemas settings shown in the report. Compare completion after creating the first and second objects in the rules array, and verify that both root properties and nested properties are offered when the behavior is fixed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, vscode
- Domain
- developer-experience, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100