_From @joshuaskelton on February 26, 2016 19:31_
Salsa intellisense doesn't correctly handle JSX type annotations.
'property declarations' can only be used in a .ts file.
_Copied from original issue: Microsoft/vscode-react-native#85_
Correct. We do not understand type annotations (other than JsDoc) in JavaScript files. The above is invalid JavaScript.
We understand TypeScript type annotations in TypeScript files. We have no plans to understand flow type annotations.
Is this an opensource repo?!!! @billti :-1:
For others who run into this, I found I had to change this setting (Code > Preferences > Settings):
"javascript.validate.enable": false
This was mentioned at the bottom of the readme in the Flow extension:
https://marketplace.visualstudio.com/items?itemName=flowtype.flow-for-vscode
Most helpful comment
For others who run into this, I found I had to change this setting (Code > Preferences > Settings):
This was mentioned at the bottom of the readme in the Flow extension:
https://marketplace.visualstudio.com/items?itemName=flowtype.flow-for-vscode