Skip to content

Commit

Permalink
add boolean() to monaco frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
sc1f committed Sep 24, 2021
1 parent 179fd45 commit 0448699
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions rust/perspective-viewer/src/rust/exprtk/language.rs
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,13 @@ thread_local! {
insert_text_rules: 4,
documentation: "Given a POSIX timestamp of milliseconds since epoch, create a new datetime".to_owned(),
},
CompletionItemSuggestion {
label: "boolean".to_owned(),
kind: 1,
insert_text: "boolean(${1:x})".to_owned(),
insert_text_rules: 4,
documentation: "Converts the given argument to a boolean".to_owned(),
},
]
};
}

0 comments on commit 0448699

Please sign in to comment.