Skip to content

Add "Enum" IntelliSense for "oneOf" and similarΒ #65

@Arno500

Description

@Arno500

πŸ™‹ feature request

It would be awesome if the extension scanned "oneOf" types in props, to provides IntelliSense with Enumeration-like propositions (like TypeScript ones).

πŸ€” Expected Behavior

PropTypes
For these propTypes, when entering "size=" it should start displaying 'small', 'medium' and 'large' for example similar to this one :
Enum in VSC

😯 Current Behavior

Currently it doesn't do anything on the value side of things.

πŸ’ Possible Solution

Probably in the VSCode extension API ;)

πŸ”¦ Context

When having a component that require a certain set of values in props, it is really useful to know what can they be, instead of checking into the component manually.

πŸ’» Examples

Look in the upper sections.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions