Vscode-react-native: Issue 306

Created on 27 Sep 2017  路  5Comments  路  Source: microsoft/vscode-react-native

https://github.com/Microsoft/vscode-react-native/issues/306

I get exactly the same issue, any real solution for this? I can't get this to work in any editor! It doesn't work anywhere except WebStorm. Even the support for this there is not that good.

I'm running on Windows 10 x64

bug external triaged wontfix

All 5 comments

Hello @fmj02

Unfortunately, Intellisense is not controlled by this extension, yet.
Please see that thread for more info.

@iTOYS If I have flow-bin installed globally and .flowconfig generated by react-native init in project directory does it affect anyhow TypeScript intellisense? The intellisense works if I type inside style={{ if i type here }} but it doesn't work inside StyleSheet.create.

@cptmcnugget by default intellisense is provided by TypeScript engine within VSCode so presence of .flowconfing doesn't matter. To use Flow for IntelliSense instead of TypeScript you need to follow this recipe but i'm not sure if it would help in this particular case though.

Regarding the root of the problem - there seem to be a bug in tsserver which doesn't return any completions for Styles members when completion triggered after typing a few characters of member name, hovewer if you press "Ctrl+Enter" _before_ typing a style's member name VSCode yields a list of completions

@vladimir-kotikov so when using vscode I don't have to install typescript locally to use typescript? or it's only for intellisense?

if presence doesn't matter that means I can safely delete flowconfig? thank you for answer btw.

@cptmcnugget to develop RN app in Javascript you don't need Typescript installed as VSCode uses bundled Typescript engine.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

webda2l picture webda2l  路  3Comments

vsccarl picture vsccarl  路  3Comments

joshuaskelton picture joshuaskelton  路  6Comments

peterp picture peterp  路  4Comments

springcoil picture springcoil  路  5Comments