Add :enabled property to syntax checkers #1089
Closed
Labels
Comments
yes, I'll take this one, great opportunity to dig dipper into flycheck. |
|
@Simplify It runs every time. |
Simplify
added a commit
that referenced
this issue
Sep 20, 2016
Simplify
added a commit
that referenced
this issue
Sep 20, 2016
Simplify
added a commit
that referenced
this issue
Sep 20, 2016
Simplify
added a commit
that referenced
this issue
Sep 24, 2016
Simplify
added a commit
that referenced
this issue
Sep 24, 2016
Simplify
added a commit
that referenced
this issue
Sep 24, 2016
Simplify
added a commit
that referenced
this issue
Sep 24, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add a new
:enabled FUNCTION
property to syntax checkers which behaves like:predicate
except that it's only called the first time a syntax checker is to be used in a buffer. If the function returns a non-nil value the checker is put in a whitelist (i.e. a buffer-local variable) to prevent further invocations of:enabled
, and if it returns nil it's put intoflycheck-disabled-checkers
to prevent any further use of it.This function would allow for more expensive checks whether a syntax checker is available.
Follow up of a Gitter discussion and #1085.
The text was updated successfully, but these errors were encountered: