of-human-bondage/react-proptypes-intellisense

Does not seem to work at all with vscode 1.54

Opened this issue ยท 0 comments

๐Ÿ› 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