You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Additional context
The text was updated successfully, but these errors were encountered:
🐛 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
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
Additional context
The text was updated successfully, but these errors were encountered: