vscode-flow-ide
vscode-flow-ide copied to clipboard
Visual Studio Code extension for javascript Flowtype static type checker
vscode-flow-ide
An alternative Flowtype extension for Visual Studio Code. Flowtype is a static type checker meant to find errors in Javascript programs.
Features
Autocomplete & diagnostics

Show types on hover

-
Parameter hints

-
Inline flow type coverage Open command pallete(CTRL+SHIFT+P) -> Toggle flow coverage: you will see an inline display of the code covered by Flow.
Requirements
- Have a
.flowconfigfile in project root - Make sure you gave NodeJS in path
- Make sure you have Flow installed globally or locally. We recommnend
using
flow-binNPM package. - If you get the error
'types' can only be used in a .ts file, please setjavascript.validate.enableoption tofalse.
Extension Settings
This extension contributes the following settings:
flowide.enable: enable/disable this extensionflowide.pathToFlow: Absolute path to the Flow executable. Set it only if the default behaviour of the extension doesn't work out for you. The extension will try first to read it from localnode_modules/flow-binor globally if not otherwise set here.flowide.useCodeSnippetsOnFunctionSuggest- Add the function paramters when selecting a function to autocomple.
Known Issues
- Parameter hints are not highlighted as the user types.
Release Notes
1.1.2
Made the formatting of hover provider nicer. Fixed a bug that caused caching of coverage results. Now it displays coverage as you save the files. Add go to definition capabilities( thanks @SaboteurSpk) Fix misplaced error for missing JSX props( thanks @SaboteurSpk)
1.1.0
Fix incorrectly detecting local Flow installs Format properly the hover text Guard against various crashes due to running flow on files it shouldn't run against
1.0.0
Initial release of VSCode flow-ide
Thanks
Inspired by Flow for VSCode and Atom Flow-ide .