Does not seem to work at all with vscode 1.54
Opened this issue ยท 0 comments
gaurav5430 commented
๐ 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
Environment
MacOs
vscode 1.54.0