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

Does not seem to work at all with vscode 1.54 #67

Open
gaurav5430 opened this issue Mar 7, 2021 · 0 comments
Open

Does not seem to work at all with vscode 1.54 #67

gaurav5430 opened this issue Mar 7, 2021 · 0 comments

Comments

@gaurav5430
Copy link

🐛 bug report

The example as given in the readme does not work as shown. There is no propTypes intellisense even if the component is defined in the same file.

To Reproduce

Recreate the README example in a react project in vscode

🤔 Expected Behavior

Intellisense for proptypes should work as shown in the Readme example.

😯 Current Behavior

Even without this plugin, vscode is able to provide intellisense for propTypes in function components

import React from 'react';
import PropTypes from 'prop-types';

function Test(props) {
  return <div>{props.title}</div>
}

Test.propTypes = {
  title: PropTypes.element.isRequired,
}

class Test1 extends React.Component {
  render() {
    return <Test ...intellisense here />
  }
}

The default vscode intellisense does not work with class components. I was expecting it to work with this plugin, but it seems it doesn't work in vscode 1.54

Screenshots

Screenshot 2021-03-07 at 12 26 08 PM

Environment

MacOs
vscode 1.54.0

Additional context

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

1 participant