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

Feature Request: document symbols to provide string values

Open
#184 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.