@markdy/language-server 0.7.24 → 0.7.26
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 +11 -26
- package/package.json +3 -2
package/dist/index.js
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
// src/index.ts
|
|
4
|
-
import {
|
|
4
|
+
import {
|
|
5
|
+
FIGURE_ONLY_ACTION_NAMES,
|
|
6
|
+
ParseError,
|
|
7
|
+
UNIVERSAL_ACTION_NAMES,
|
|
8
|
+
parse
|
|
9
|
+
} from "@markdy/core";
|
|
10
|
+
import { SYSTEM_FLOW_ACTIONS } from "@markdy/stdlib-systems";
|
|
5
11
|
import {
|
|
6
12
|
CompletionItemKind,
|
|
7
13
|
createConnection,
|
|
@@ -14,31 +20,9 @@ import {
|
|
|
14
20
|
import { TextDocument } from "vscode-languageserver-textdocument";
|
|
15
21
|
var connection = createConnection(ProposedFeatures.all);
|
|
16
22
|
var documents = new TextDocuments(TextDocument);
|
|
17
|
-
var UNIVERSAL_ACTIONS = [
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
"move",
|
|
21
|
-
"fade_in",
|
|
22
|
-
"fade_out",
|
|
23
|
-
"scale",
|
|
24
|
-
"rotate",
|
|
25
|
-
"shake",
|
|
26
|
-
"say",
|
|
27
|
-
"throw",
|
|
28
|
-
"play"
|
|
29
|
-
];
|
|
30
|
-
var FIGURE_ACTIONS = [
|
|
31
|
-
"punch",
|
|
32
|
-
"kick",
|
|
33
|
-
"wave",
|
|
34
|
-
"nod",
|
|
35
|
-
"jump",
|
|
36
|
-
"bounce",
|
|
37
|
-
"face",
|
|
38
|
-
"rotate_part",
|
|
39
|
-
"pose"
|
|
40
|
-
];
|
|
41
|
-
var SYSTEM_ACTIONS = ["request", "response", "emit"];
|
|
23
|
+
var UNIVERSAL_ACTIONS = [...UNIVERSAL_ACTION_NAMES];
|
|
24
|
+
var FIGURE_ACTIONS = [...FIGURE_ONLY_ACTION_NAMES];
|
|
25
|
+
var SYSTEM_ACTIONS = [...SYSTEM_FLOW_ACTIONS];
|
|
42
26
|
var KEYWORDS = [
|
|
43
27
|
"scene",
|
|
44
28
|
"actor",
|
|
@@ -46,6 +30,7 @@ var KEYWORDS = [
|
|
|
46
30
|
"var",
|
|
47
31
|
"def",
|
|
48
32
|
"seq",
|
|
33
|
+
"group",
|
|
49
34
|
"preset",
|
|
50
35
|
"import",
|
|
51
36
|
"camera"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@markdy/language-server",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.26",
|
|
4
4
|
"description": "Language Server Protocol implementation for MarkdyScript.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -44,7 +44,8 @@
|
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"vscode-languageserver": "^9.0.1",
|
|
46
46
|
"vscode-languageserver-textdocument": "^1.0.12",
|
|
47
|
-
"@markdy/
|
|
47
|
+
"@markdy/stdlib-systems": "0.7.26",
|
|
48
|
+
"@markdy/core": "0.7.26"
|
|
48
49
|
},
|
|
49
50
|
"devDependencies": {
|
|
50
51
|
"tsup": "^8.5.1",
|