Refactor external command (#6083)

Co-authored-by: Frank <v-frankz@microsoft.com>
This commit is contained in:
Kangaxx-0
2022-07-21 16:56:57 -07:00
committed by GitHub
parent 0bcfa12e0d
commit 0646f1118c
7 changed files with 60 additions and 24 deletions

View File

@ -1121,7 +1121,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.get_block_id().is_none(),
val: !decl.is_custom_command(),
span,
});
@ -1139,7 +1139,7 @@ pub fn create_scope(
cols.push("is_custom".to_string());
vals.push(Value::Bool {
val: decl.get_block_id().is_some(),
val: decl.is_custom_command(),
span,
});