@constela/language-server 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +6 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -92,7 +92,8 @@ var EXPR_TYPES = [
|
|
|
92
92
|
{ label: "concat", detail: "Concat expression - concatenates multiple expressions into a string", kind: CompletionItemKind.Value },
|
|
93
93
|
{ label: "validity", detail: "Validity expression - gets form element validation state", kind: CompletionItemKind.Value },
|
|
94
94
|
{ label: "call", detail: "Call expression - calls a method on a target", kind: CompletionItemKind.Method },
|
|
95
|
-
{ label: "lambda", detail: "Lambda expression - anonymous function for array methods", kind: CompletionItemKind.Method }
|
|
95
|
+
{ label: "lambda", detail: "Lambda expression - anonymous function for array methods", kind: CompletionItemKind.Method },
|
|
96
|
+
{ label: "array", detail: "Array expression - constructs an array from expressions", kind: CompletionItemKind.Value }
|
|
96
97
|
];
|
|
97
98
|
var ACTION_STEPS = [
|
|
98
99
|
{ label: "set", detail: "Set step - sets a state field to a new value", kind: CompletionItemKind.Function },
|
|
@@ -301,6 +302,10 @@ var EXPR_DOCS = {
|
|
|
301
302
|
lambda: {
|
|
302
303
|
signature: '{ "expr": "lambda", "param": string, "index"?: string, "body": Expression }',
|
|
303
304
|
description: "Lambda expression - anonymous function for array methods"
|
|
305
|
+
},
|
|
306
|
+
array: {
|
|
307
|
+
signature: '{ "expr": "array", "elements": Expression[] }',
|
|
308
|
+
description: "Array expression - constructs an array from expressions"
|
|
304
309
|
}
|
|
305
310
|
};
|
|
306
311
|
var ACTION_DOCS = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@constela/language-server",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Language Server Protocol implementation for Constela DSL",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"vscode-languageserver-textdocument": "^1.0.12",
|
|
24
24
|
"vscode-jsonrpc": "^8.2.1",
|
|
25
25
|
"jsonc-parser": "^3.3.1",
|
|
26
|
-
"@constela/
|
|
27
|
-
"@constela/
|
|
26
|
+
"@constela/core": "0.15.0",
|
|
27
|
+
"@constela/compiler": "0.14.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@types/node": "^20.10.0",
|