Change how to identify custom comamnd (#6187)

Co-authored-by: Frank <v-frankz@microsoft.com>
This commit is contained in:
Kangaxx-0
2022-08-02 16:40:07 -07:00
committed by GitHub
parent ce6df93d05
commit ebf845f431
5 changed files with 19 additions and 5 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.get_block_id().is_none(),
val: !decl.is_custom_command(),
span,
});
@ -1119,7 +1119,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,
});