aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmeraldMerchant <96396730+EmeraldMerchant@users.noreply.github.com>2022-07-23 00:38:08 +0800
committerGitHub <noreply@github.com>2022-07-23 00:38:08 +0800
commit9c44e8d6ccdfaf3b34da956ad3a104c6b7ba2718 (patch)
treedb139ad419a31c73e7fa6327fd1f8b34afd8ac95
parent218d91e91db6df30b28764d64d59ffbe709ce538 (diff)
downloadSoopyV2-9c44e8d6ccdfaf3b34da956ad3a104c6b7ba2718.tar.gz
SoopyV2-9c44e8d6ccdfaf3b34da956ad3a104c6b7ba2718.tar.bz2
SoopyV2-9c44e8d6ccdfaf3b34da956ad3a104c6b7ba2718.zip
+ tab completions
+ command tab completions
-rw-r--r--featureClass/featureManager.js4
1 files changed, 3 insertions, 1 deletions
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
}