-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpackage.json
More file actions
225 lines (225 loc) · 6.48 KB
/
Copy pathpackage.json
File metadata and controls
225 lines (225 loc) · 6.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
{
"name": "aottg2cl",
"displayName": "AoTTG 2 Custom Logic Language Support",
"description": "Syntax highlighting and autocomplete for AoTTG 2 Custom Logic",
"version": "0.2.0",
"publisher": "Jagerente",
"icon": "resources/icon.png",
"repository": {
"type": "git",
"url": "https://github.com/Jagerente/aottg2cl-vsce"
},
"engines": {
"vscode": "^1.94.0"
},
"categories": [
"Programming Languages"
],
"activationEvents": [],
"main": "./out/extension.js",
"contributes": {
"languages": [
{
"id": "acl",
"aliases": [
"AoTTG 2 Custom Logic",
"acl",
"cl"
],
"extensions": [
".cl"
],
"configuration": "./language-configuration.json"
}
],
"grammars": [
{
"language": "acl",
"scopeName": "source.acl",
"path": "./syntaxes/acl.tmLanguage.json"
}
],
"breakpoints": [
{
"language": "acl"
}
],
"snippets": [
{
"language": "acl",
"path": "./snippets/acl.code-snippets"
}
],
"commands": [
{
"command": "extension.buildScript",
"title": "Build Custom Logic"
},
{
"command": "extension.buildScriptIntoMap",
"title": "Build Custom Logic Into Custom Map"
}
],
"configuration": {
"type": "object",
"title": "AoTTG 2 Custom Logic Language",
"properties": {
"aottg2cl.diagnostics.showClassUsage": {
"type": "boolean",
"default": true,
"description": "Show diagnostics for class usage."
},
"aottg2cl.diagnostics.showUnresolvedMembers": {
"type": "boolean",
"default": true,
"description": "Show warnings for unresolved methods and fields."
},
"aottg2cl.format.enableFormatter": {
"type": "boolean",
"default": true,
"description": "Enable formatting"
},
"aottg2cl.format.insertSpaces": {
"type": "boolean",
"default": false,
"description": "Use spaces instead of tabs for indentation"
},
"aottg2cl.format.tabSize": {
"type": "number",
"default": 4,
"minimum": 1,
"maximum": 8,
"description": "Number of spaces used for indentation"
},
"aottg2cl.build.rememberLastPath": {
"type": "boolean",
"default": true,
"description": "Remember the last folder used when saving the final file."
},
"aottg2cl.build.rememberLastName": {
"type": "boolean",
"default": true,
"description": "Remember the last filename used when saving the final file."
},
"aottg2cl.completion.disableAutoParameters": {
"type": "boolean",
"default": false,
"description": "Disable automatic parameter completion in function calls. When enabled, only empty parentheses will be inserted."
},
"aottg2cl.debug.port": {
"type": "number",
"default": 4711,
"minimum": 1,
"maximum": 65535,
"description": "Default port for the CL debug server."
},
"aottg2cl.parsing.debounceDelay": {
"type": "number",
"default": 300,
"minimum": 50,
"maximum": 1000,
"description": "Delay in milliseconds before parsing a document. This helps reduce the number of parsing operations and improves performance."
}
}
},
"debuggers": [
{
"type": "cl",
"label": "CL Debug",
"languages": [
"acl"
],
"breakpoints": {
"languageIds": [
"acl"
]
},
"configurationAttributes": {
"launch": {
"required": [
"program"
],
"properties": {
"program": {
"type": "string",
"description": "Absolute path to a .cl file.",
"default": "${file}"
},
"stopOnEntry": {
"type": "boolean",
"description": "Automatically stop after launch.",
"default": false
},
"port": {
"type": "number",
"description": "Port to connect to the debugger server.",
"default": 4711
},
"trace": {
"type": "boolean",
"description": "Enable logging of the Debug Adapter Protocol.",
"default": false
}
}
}
},
"initialConfigurations": [
{
"type": "cl",
"request": "launch",
"name": "Debug CL Script",
"program": "${file}",
"stopOnEntry": false,
"port": 4711
}
],
"configurationSnippets": [
{
"label": "CL Debug: Launch",
"description": "A new configuration for debugging a CL file.",
"body": {
"type": "cl",
"request": "launch",
"name": "Debug CL Script",
"program": "^\"\\${file}\"",
"stopOnEntry": false,
"port": 4711
}
}
]
}
]
},
"scripts": {
"update-syntax": "ts-node scripts/updateSyntaxClasses.ts",
"vscode:prepublish": "npm run update-syntax && npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint && npm run test:integration",
"lint": "eslint src",
"test": "vscode-test",
"test:unit": "mocha out/**/*.test.js",
"test:integration": "mocha out/test/JsonClassLoader.integration.test.js",
"antlr4ts": "antlr4ts -o ./src/antlr4ts/ -visitor -listener ./src/antlr4ts/ACL.g4",
"build": "npm run antlr4ts && npm run pretest && vsce package"
},
"devDependencies": {
"@types/mocha": "^10.0.8",
"@types/node": "20.x",
"@types/vscode": "^1.94.0",
"@typescript-eslint/eslint-plugin": "^8.7.0",
"@typescript-eslint/parser": "^8.7.0",
"@vscode/test-cli": "^0.0.10",
"@vscode/test-electron": "^2.4.1",
"antlr4ts-cli": "^0.5.0-alpha.4",
"esbuild": "^0.25.4",
"eslint": "^9.11.1",
"mocha": "^10.2.0",
"ts-node": "^10.9.2",
"typescript": "^5.6.2"
},
"dependencies": {
"antlr4ts": "^0.5.0-alpha.4",
"vscode-debugadapter": "^1.51.0"
}
}