redhat-developer / redhat-developer/yaml-language-server
Support YAML completion for different hierarchy syntaxes
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 1.5k
- Forks
- 352
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 11
Description
Is your enhancement related to a problem? Please describe.
Currently, I'm frustrated because completion does not work for these both cases:
level1:
level2:
or:
level1.level2:
In one case, I have completion, but not in second case (or the opposite, up to schema definition).
Describe the solution you would like
it would be great if completion engine can consider these two syntaxes as the same, and so, provide the same completion.
To be more concrete, it would be great that this schema definition brings completion for both syntaxes:
{
"level1": {
"type": "object",
"properties": {
"level2": {
"type": "string"
}
}
}
}
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
Start by tracing the YAML completion engine's handling of nested indentation and dot-separated keys against the provided schema. Compare completion for both snippets, then verify that both hierarchy syntaxes produce the same schema-based suggestions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, yaml
- Domain
- devtools
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100