redhat-developer / redhat-developer/yaml-language-server
intellisense completion breaks with multiple documents in a single file
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 1.5k
- Forks
- 352
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 11
Description
Describe the bug
It seems like intellisense completion breaks with multiple docs in single file. For example if I'm working with k8s manifests it's very common to have multiple related k8s resources per .yaml file.
Expected Behavior
If I have only one doc per file the completion works perfectly:

& I'd expect it to work just fine with multiple docs as well
Current Behavior
...but actually with multiple docs it offers nothing:

Environment
- Windows
- Mac
- Linux
- other (please specify)
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 reproducing completion in a YAML file containing multiple Kubernetes documents, comparing it with a single-document file. Trace the language-server completion path and add coverage for the multi-document case; done means completion suggestions appear for each document.
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
- 38/100