@constela/language-server 0.1.17 → 0.1.18
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
|
@@ -94,7 +94,8 @@ var EXPR_TYPES = [
|
|
|
94
94
|
{ label: "validity", detail: "Validity expression - gets form element validation state", kind: CompletionItemKind.Value },
|
|
95
95
|
{ label: "call", detail: "Call expression - calls a method on a target", kind: CompletionItemKind.Method },
|
|
96
96
|
{ label: "lambda", detail: "Lambda expression - anonymous function for array methods", kind: CompletionItemKind.Method },
|
|
97
|
-
{ label: "array", detail: "Array expression - constructs an array from expressions", kind: CompletionItemKind.Value }
|
|
97
|
+
{ label: "array", detail: "Array expression - constructs an array from expressions", kind: CompletionItemKind.Value },
|
|
98
|
+
{ label: "obj", detail: "Object expression - constructs an object from key-value pairs", kind: CompletionItemKind.Value }
|
|
98
99
|
];
|
|
99
100
|
var ACTION_STEPS = [
|
|
100
101
|
{ label: "set", detail: "Set step - sets a state field to a new value", kind: CompletionItemKind.Function },
|
|
@@ -322,6 +323,10 @@ var EXPR_DOCS = {
|
|
|
322
323
|
array: {
|
|
323
324
|
signature: '{ "expr": "array", "elements": Expression[] }',
|
|
324
325
|
description: "Array expression - constructs an array from expressions"
|
|
326
|
+
},
|
|
327
|
+
obj: {
|
|
328
|
+
signature: '{ "expr": "obj", "props": Record<string, Expression> }',
|
|
329
|
+
description: "Object expression - constructs an object from key-value pairs"
|
|
325
330
|
}
|
|
326
331
|
};
|
|
327
332
|
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.18",
|
|
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/compiler": "0.15.
|
|
27
|
-
"@constela/core": "0.18.
|
|
26
|
+
"@constela/compiler": "0.15.8",
|
|
27
|
+
"@constela/core": "0.18.2"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@types/node": "^20.10.0",
|