Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Arno500 opened this issue Jun 13, 2019 · 1 comment
Open

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

Arno500 opened this issue Jun 13, 2019 · 1 comment

Comments

@Arno500
Copy link

Arno500 commented Jun 13, 2019

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

@reni1111
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants