summaryrefslogtreecommitdiff
path: root/stdin-wrapper.exe
diff options
context:
space:
mode:
authorBjorn Neergaard <bjorn@neersighted.com>2016-10-11 16:51:01 -0500
committerBjorn Neergaard <bjorn@neersighted.com>2016-10-13 08:51:38 -0500
commitdc58db764064ec924b78c43acff32607845edac5 (patch)
treea851dded57a5bb1255c18beba9c480efdd396153 /stdin-wrapper.exe
parentf4159ac7eeb3787574692a451bff9159b039d395 (diff)
downloadale-dc58db764064ec924b78c43acff32607845edac5.zip
Implement a more efficient statusbar
The statusbar now keeps its state in a separate variable, in order to avoid excess iterations. The engine now updates said variable on run, and a new function is made available for external statusbars to call (to avoid dependencies on internal implementation details of ale). To keep things light, the status bar code is not loaded unless invoked by the user or an external plugin. On the first load it will update itself from the global loclist, after that, the engine will handle all updates. The external integration function, `ale#statusline#Count()`, will return a tuple in the format [E, W] (where E is errors, W is warnings), unless no data exists (ie, the plugin doesn't have a linter for a file or has not run yet), in which case it returns 0/false.
Diffstat (limited to 'stdin-wrapper.exe')
0 files changed, 0 insertions, 0 deletions