From 70b93399f60f5c1b7fa7c1db8ead5f4c379a1fd4 Mon Sep 17 00:00:00 2001 From: Christopher Barry Date: Fri, 14 Apr 2017 10:48:52 -0400 Subject: [PATCH] Added option to run flow on all files --- FlowIDE.sublime-settings | 3 ++- flow-ide.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/FlowIDE.sublime-settings b/FlowIDE.sublime-settings index 8fb608b..5ca2e2e 100644 --- a/FlowIDE.sublime-settings +++ b/FlowIDE.sublime-settings @@ -1,4 +1,5 @@ { "flow_path": "flow", - "use_npm_flow": false + "use_npm_flow": false, + "flow_dec_only": true } diff --git a/flow-ide.py b/flow-ide.py index 7ac9f93..ffdec6b 100644 --- a/flow-ide.py +++ b/flow-ide.py @@ -266,7 +266,8 @@ def on_selection_modified_async(self, view): if ( '// @flow' not in deps.contents and - '/* @flow */' not in deps.contents + '/* @flow */' not in deps.contents and + settings.get('flow_dec_only') ): return view.erase_regions('flow_error')