redhat-developer / redhat-developer/yaml-language-server
Feature Request: document symbols to provide string values
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 1.5k
- Forks
- 352
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 11
Description
Currently document symbols returned are only keys of primitives, objects and arrays.
Keys of primitives are returned with kind 15 (String).
Is it possible to return also values, specifically strings? This will allow showing a reacher outline that shows also the values of the properties (short ones) and not only the keys.
I guess the kind of keys can change to 20 (Key) and the kind of value strings can be 15 (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 how document symbols are generated for primitive, object, and array keys, then inspect how LSP SymbolKind values 15 and 20 are assigned. Confirm the desired outline behavior for short string values and verify that keys and values appear with the intended kinds.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- devtools
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100