vscode-yaml
vscode-yaml copied to clipboard
Completion for "const" doesn't work inside "items"
Describe the bug
When I try to complete an array item which value is restricted by const nothing is suggested. But if I use enum instead of const, then completion brings up.
Expected Behavior
Completion should work in both cases.
Current Behavior
Already explained above.
Steps to Reproduce
Create JSON schema with the following content:
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "array",
"items": {
"type": "string",
"const": "pop"
}
}
Create a test YAML file and link a JSON schema to it like this:
{
"yaml.schemas": {
"schema.json": "test.yaml"
}
}
Try to type -<space> inside this test file and press Ctrl+Space to get no completion.
Environment
- [ ] Windows
- [ ] Mac
- [x] Linux
- [ ] other (please specify)