From 0448699511711f62cce1fdee6fc5eef8faf9f30f Mon Sep 17 00:00:00 2001 From: Jun Tan Date: Fri, 24 Sep 2021 10:04:27 -0400 Subject: [PATCH] add boolean() to monaco frontend --- rust/perspective-viewer/src/rust/exprtk/language.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/rust/perspective-viewer/src/rust/exprtk/language.rs b/rust/perspective-viewer/src/rust/exprtk/language.rs index 4ed009d8f2..11a9b2fdde 100644 --- a/rust/perspective-viewer/src/rust/exprtk/language.rs +++ b/rust/perspective-viewer/src/rust/exprtk/language.rs @@ -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(), + }, ] }; }