Revert "Refactor external command (#6083)" (#6116)

This reverts commit 0646f1118c.
This commit is contained in:
JT
2022-07-26 05:37:15 +12:00
committed by GitHub
parent 3643ee6dfd
commit 475d32045f
7 changed files with 24 additions and 60 deletions

View File

@ -1101,7 +1101,7 @@ pub fn create_scope(
cols.push("is_builtin".to_string());
// we can only be a is_builtin or is_custom, not both
vals.push(Value::Bool {
val: !decl.is_custom_command(),
val: decl.get_block_id().is_none(),
span,
});
@ -1119,7 +1119,7 @@ pub fn create_scope(
cols.push("is_custom".to_string());
vals.push(Value::Bool {
val: decl.is_custom_command(),
val: decl.get_block_id().is_some(),
span,
});