fix(frontends/lean/elaborator): do not display flycheck related messages when --flycheck is not on
This commit is contained in:
parent
6768c76b52
commit
366bf70ccd
1 changed files with 4 additions and 2 deletions
|
@ -1053,8 +1053,10 @@ void elaborator::try_using_begin_end(substitution & subst, expr const & mvar, pr
|
||||||
if (auto p = pip()->get_pos_info(ptac)) {
|
if (auto p = pip()->get_pos_info(ptac)) {
|
||||||
auto out = regular(env(), ios());
|
auto out = regular(env(), ios());
|
||||||
flycheck_information info(out);
|
flycheck_information info(out);
|
||||||
display_information_pos(out, pip()->get_file_name(), p->first, p->second);
|
if (info.enabled()) {
|
||||||
out << " proof state:\n" << ps.pp(env(), ios()) << "\n";
|
display_information_pos(out, pip()->get_file_name(), p->first, p->second);
|
||||||
|
out << " proof state:\n" << ps.pp(env(), ios()) << "\n";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ps = r->first;
|
ps = r->first;
|
||||||
|
|
Loading…
Reference in a new issue