Skip to content

Commit 2980ab6

Browse files
committed
0.0.3
1 parent 41e6b00 commit 2980ab6

File tree

3 files changed

+24
-3
lines changed

3 files changed

+24
-3
lines changed

extension.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,16 @@ function activate(context) {
4848
],
4949
ModuleManager: [
5050
{ name: 'GetModuleByName', description: 'returns module', type: 1 },
51+
{ name: 'GetModules', description: 'returns module list', type: 1 },
5152
],
5253
ModuleSettings: [
5354
{ name: 'GetSetting', description: 'returns setting of other module', type: 1 },
55+
],
56+
Module: [
57+
{ name: 'Toggle', description: 'toggles module', type: 1 },
58+
{ name: 'getName', description: 'returns name', type: 1 },
59+
{ name: 'getDescription', description: 'returns description', type: 1 },
60+
{ name: 'isEnabled', description: 'returns if module is enabled', type: 1 },
5461
],
5562
};
5663

@@ -102,6 +109,20 @@ function activate(context) {
102109
'\nend)'
103110
);
104111
completions.push(onEventCompletion);
112+
113+
114+
const onCommandCompletion = new vscode.CompletionItem(
115+
'onCommand',
116+
vscode.CompletionItemKind.Function
117+
);
118+
onCommandCompletion.detail = 'onCommand function template';
119+
onCommandCompletion.documentation = 'Inserts a template for handling commands';
120+
onCommandCompletion.insertText = new vscode.SnippetString(
121+
'onCommand("${1}", function()' +
122+
'\n ${2}' +
123+
'\nend)'
124+
);
125+
completions.push(onCommandCompletion);
105126
}
106127

107128
return completions;

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "flarial-scripting",
33
"displayName": "Flarial scripting",
44
"description": "",
5-
"version": "0.0.2",
5+
"version": "0.0.3",
66
"authors": ["Flarial client", "Withors"],
77
"engines": {
88
"vscode": "^1.95.0"

0 commit comments

Comments
 (0)