feat: include `values` inside the attributes when generating `docs-vscode`output target

Open
#5,014 4 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
42/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
typescript
Domain
tooling

Research direction

Start by tracing the docs-vscode output target and how it constructs the generated component JSON, focusing on the attributes entries shown in the issue. Check how JSDoc @type or @typedef information is represented, then verify that possible values such as primary and secondary appear in the generated attributes output.

Written by the indexing model from the issue text.

Description

Feature: Want this? Upvote it!
Prerequisites
Describe the Feature Request

When generating the docs-vscode output target, I am unable to get generate values inside the generated json.

Example output:

{
      "name": "evo-card",
      "description": {
        "kind": "markdown",
        "value": "Displays a card with a shadow."
      },
      "attributes": [
        {
          "name": "focused",
          "description": ""
        },
        {
          "name": "variant",
          "description": "The variant of the card."
        }
      ]
    }

attributes.values remain empty when trying jsdoc attributes like @type of @typdefs

Describe the Use Case

It would add intellisense of all possible values. Example: primary, secondary,...

Describe Preferred Solution

No response

Describe Alternatives

No response

Related Code

No response

Additional Information

No response

Dominant language
TypeScript
Stars
13.1k
Forks
855
Avg merge
4h 7m
Merged PRs (30d)
44

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.

More from stenciljs/core

All issues in stenciljs/core

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.