redhat-developer / redhat-developer/vscode-yaml
Auto-complete is not working for first-level elements of some schemas
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 829
- Forks
- 260
- Avg merge
- 5h 43m
- Merged PRs (30d)
- 1
Description
I created test in Yaml Language Server and it is working fine https://github.com/apupier/yaml-language-server/tree/tesCamelK
I created similar test in VS Code Yaml and it is failing: https://github.com/apupier/vscode-yaml/tree/testCamelKSchema
in UI, to reproduce manually:
-
bind this schema https://raw.githubusercontent.com/apupier/vscode-yaml/testCamelKSchema/test/testFixture/schemas/camelk_schema.json to *.cmalek.yaml file
-
create a file test.camelk.yaml
-
put similar content than https://github.com/apupier/vscode-yaml/blob/testCamelKSchema/test/testFixture/completion/completion-secondlevel.camelk.yaml (take care of spaces)
-
trigger completion at the end of the file
--> there is no completion provided by the Yaml Language server (i checked the ouput of the language server and it returns an empty list of completionitem)
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
Compare the working Yaml Language Server test on the tesCamelK branch with the failing VS Code Yaml testCamelKSchema branch, especially test/testFixture/schemas/camelk_schema.json and test/testFixture/completion/completion-secondlevel.camelk.yaml. Bind the schema to a .cmalek.yaml file, trigger completion at the end, and use the test or language-server output to confirm that first-level completions are returned.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100