Typescript: IntelliSense Doesn't Understand Type Annotations

Created on 27 Feb 2016  路  3Comments  路  Source: microsoft/TypeScript

_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.

screen shot 2016-02-26 at 11 27 16 am

_Copied from original issue: Microsoft/vscode-react-native#85_

Working as Intended

Most helpful comment

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

All 3 comments

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

siddjain picture siddjain  路  3Comments

manekinekko picture manekinekko  路  3Comments

blendsdk picture blendsdk  路  3Comments

Roam-Cooper picture Roam-Cooper  路  3Comments

bgrieder picture bgrieder  路  3Comments