@constela/language-server 0.1.16 → 0.1.17
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 +5 -0
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -77,6 +77,7 @@ import { CompletionItemKind } from "vscode-languageserver";
|
|
|
77
77
|
var EXPR_TYPES = [
|
|
78
78
|
{ label: "lit", detail: "Literal expression - represents a constant value", kind: CompletionItemKind.Value },
|
|
79
79
|
{ label: "state", detail: "State expression - references a state field", kind: CompletionItemKind.Value },
|
|
80
|
+
{ label: "local", detail: "Local state expression - references a component's local state", kind: CompletionItemKind.Value },
|
|
80
81
|
{ label: "var", detail: "Variable expression - references a loop variable or event data", kind: CompletionItemKind.Value },
|
|
81
82
|
{ label: "bin", detail: "Binary expression - arithmetic, comparison, or logical operation", kind: CompletionItemKind.Value },
|
|
82
83
|
{ label: "not", detail: "Not expression - logical negation", kind: CompletionItemKind.Value },
|
|
@@ -250,6 +251,10 @@ var EXPR_DOCS = {
|
|
|
250
251
|
signature: '{ "expr": "state", "name": string, "path"?: string }',
|
|
251
252
|
description: "State expression - references a state field"
|
|
252
253
|
},
|
|
254
|
+
local: {
|
|
255
|
+
signature: '{ "expr": "local", "name": string }',
|
|
256
|
+
description: "Local state expression - references a component's local state"
|
|
257
|
+
},
|
|
253
258
|
var: {
|
|
254
259
|
signature: '{ "expr": "var", "name": string, "path"?: string }',
|
|
255
260
|
description: "Variable expression - references a loop variable or event data"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@constela/language-server",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.17",
|
|
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/compiler": "0.15.7",
|
|
27
|
+
"@constela/core": "0.18.1"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@types/node": "^20.10.0",
|