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')