Fix 'help commands'; Add 'is_custom' column (#420)

* Fix fetching commands; Add is_custom column

* Remove old comment
This commit is contained in:
Jakub Žádník
2021-12-03 20:45:29 +02:00
committed by GitHub
parent f3c8d35eb7
commit 405a4e58c7
4 changed files with 89 additions and 37 deletions

View File

@ -602,6 +602,12 @@ pub fn eval_variable(
span,
});
cols.push("is_custom".to_string());
vals.push(Value::Bool {
val: decl.get_block_id().is_some(),
span,
});
cols.push("creates_scope".to_string());
vals.push(Value::Bool {
val: signature.creates_scope,