Flow-for-vscode: Autocomplete/IntelliSense works only under very specific circumstances

Created on 4 Apr 2018  路  5Comments  路  Source: flowtype/flow-for-vscode

flow-autocomplete-issue

Maybe I'm doing something completely wrong but I've been trying to get flow working nicely in VSCode for several hours. I've concluded that IntelliSense with flow has some real issues and recorded this gif showing two ways I believe it's broken:

  1. Chaining causes IntelliSense to stop working.
  2. Trying to use it preceding an anonymous function without a semicolon somewhere between causes IntelliSense to stop working.

These issues may be related. Needless to say, it's making Flow pretty difficult to work with.

FWIW, Identical behaviour in Atom.

flow 0.69.0
flow-for-vscode 0.8.0

Most helpful comment

Same, I can't get flow to give me any intellisense at all. I've disabled vscode's inbuild typescript plugin.

All 5 comments

Same, I can't get flow to give me any intellisense at all. I've disabled vscode's inbuild typescript plugin.

Did anyone got both Flow and IntelliSense working?

Alright I guess this is still an issue.

VSCode intellsense has evolved (nice thing).

But typing string will be suggested String.

So if you don't pay attention it will write String (from JS class since VSCode does not know about flow types). Really annoying.

Is there a way to feed VScode intellisense (I'm not used to create VSCode extension)?

Well... yes, this plugin is supposed to provide intellisense (among other things). Maybe there's a chance your flow binary/this extension is not working correctly... Also, it'll probably not work if you're in Windows.

@MacKentoch in the extension sidebar, type @builtin typescript and then click the settings cog to disable for your project or globally. After a reload it should look like this:

image

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ianwalter picture ianwalter  路  5Comments

wbinnssmith picture wbinnssmith  路  5Comments

FezVrasta picture FezVrasta  路  5Comments

micmro picture micmro  路  4Comments

dominictwlee picture dominictwlee  路  5Comments