From 9c44e8d6ccdfaf3b34da956ad3a104c6b7ba2718 Mon Sep 17 00:00:00 2001 From: EmeraldMerchant <96396730+EmeraldMerchant@users.noreply.github.com> Date: Sat, 23 Jul 2022 00:38:08 +0800 Subject: + tab completions + command tab completions --- featureClass/featureManager.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'featureClass/featureManager.js') diff --git a/featureClass/featureManager.js b/featureClass/featureManager.js index f39d762..92212be 100644 --- a/featureClass/featureManager.js +++ b/featureClass/featureManager.js @@ -536,11 +536,13 @@ class FeatureManager { return event } - registerCommand(commandName, func, context) { + registerCommand(commandName, func, context, completions) { let event = this.registerCustom("command", func, context) event.trigger.setName(commandName, true) + + if (completions) event.trigger.setName(commandName, true).setTabCompletions(completions) return event } -- cgit