redhat-developer / redhat-developer/yaml-language-server

intellisense completion breaks with multiple documents in a single file

Open
#869 6 comments 15 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

needs-info
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:

image

& I'd expect it to work just fine with multiple docs as well

Current Behavior

...but actually with multiple docs it offers nothing:

image

Environment

  • Windows
  • Mac
  • Linux
  • other (please specify)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.