redhat-developer / redhat-developer/vscode-yaml
AutoComplete not showing up in .yaml (but in .json with same json schema file!)
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 829
- Forks
- 260
- Avg merge
- 5h 43m
- Merged PRs (30d)
- 1
Description
Seems like same as this issue from a long time ago: https://github.com/redhat-developer/vscode-yaml/issues/222
I am using the latest version of VSCode and this plugin.
Here's the json schema:
{
"$id": "foo",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"cd": {
"type": "object",
"properties": {
"profile": {
"type": "string",
"enum": [
"multizoneClusterSystem",
"foobar"
]
},
"couchdb": {
"type": "boolean",
"description": "Whether you are using couchdb or not"
}
},
"required": [ "profile" ]
}
},
"required": [
"cd"
]
}
Here's the settings.json entry:
"yaml.schemas": {
"/Users/kamok/Documents/code/yaml-validation-demo/cd.json": [
"*build.yml"
]
},
"json.schemas": [
{
"fileMatch": ["build.json"],
"url": "/cd.json"
}
],
Here's the two .yml and .json files:
{
"cd": {
"profile": "foobar",
"couchdb": false
}
}
cd:
profile: foobar
The .yml file, when I type profile does not pop up the two options. The json does!
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
The report names settings.json, cd.json, build.yml, and build.json; begin by reproducing the yaml.schemas mapping and comparing completion behavior for the YAML and JSON examples. Done means the profile enum suggestions appear in build.yml as they do in build.json; no source file or test is identified in the report.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, vscode, yaml
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100