from microsoft/vscode#82276
TypeScript Version: 3.7.0-dev.20191011
Search Terms:
- completions / suggestions
- react
Code
For a simple typescript react file:
import*asReactfrom'react';typeProps={name: string;isActive: boolean;};exportconstCustomComponent=<Textends{}>(props: Props)=>{return<React.Fragment>{props.name}</React.Fragment>;};exportconstTestComponent=()=>{return(<CustomComponent<string>|><div></div></CustomComponent>);};- Place cursor at
| in <CustomComponent<string> - Trigger completions
Expected behavior:
Completions for name and isActive returned
Actual behavior:
No completions are returned.
If you add a property such as isActive={true}, then a completion for name is returned
from microsoft/vscode#82276
TypeScript Version: 3.7.0-dev.20191011
Search Terms:
Code
For a simple typescript react file:
|in<CustomComponent<string>Expected behavior:
Completions for
nameandisActivereturnedActual behavior:
No completions are returned.
If you add a property such as
isActive={true}, then a completion fornameis returned