Skip to content

Commit

Permalink
update flow-bin
Browse files Browse the repository at this point in the history
  • Loading branch information
lloiser committed Mar 18, 2018
1 parent bfe2473 commit ab67ea6
Show file tree
Hide file tree
Showing 4 changed files with 372 additions and 177 deletions.
4 changes: 4 additions & 0 deletions .flowconfig
Expand Up @@ -12,3 +12,7 @@ suppress_comment= \\(.\\|\n\\)*\\$FlowIgnore

[lints]
all=warn

# turned off because there are lot of types missing atm...
unclear-type=off
untyped-import=off
2 changes: 1 addition & 1 deletion lib/index.js
Expand Up @@ -33,7 +33,7 @@ const defaultFlowFile = Path.resolve(__dirname, '..', 'vendor', '.flowconfig')
const defaultFlowBinLocation = 'node_modules/.bin/flow'
const grammarScopes = ['source.js', 'source.js.jsx']

function handleError(error: Error, configFile: ?string) {
function handleError(error: { message: string, code: string }, configFile: ?string) {
if (error.message.indexOf(INIT_MESSAGE) !== -1 && typeof configFile === 'string') {
servers.set(Path.dirname(configFile), { version: null })
}
Expand Down

0 comments on commit ab67ea6

Please sign in to comment.