-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
308 lines (308 loc) · 9.01 KB
/
Copy pathpackage.json
File metadata and controls
308 lines (308 loc) · 9.01 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
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
{
"name": "ie-lua-language-server",
"displayName": "IE Lua Language Server",
"description": "Professional Lua and Infinity Engine .menu language support for VS Code and stdio LSP clients.",
"version": "0.6.1",
"publisher": "infinity-engine-tools",
"icon": "assets/icon.png",
"galleryBanner": {
"color": "#071A2F",
"theme": "dark"
},
"license": "SEE LICENSE IN LICENSE.md",
"private": true,
"repository": {
"type": "git",
"url": "https://github.com/4Luke4/ie-lua-language-server.git"
},
"engines": {
"vscode": "^1.100.0",
"node": ">=24.0.0 <25"
},
"categories": [
"Programming Languages",
"Formatters",
"Linters"
],
"keywords": [
"lua",
"luajit",
"infinity-engine",
"baldurs-gate",
"icewind-dale",
"language-server"
],
"main": "./dist/client/extension.js",
"workspaces": [
"packages/client",
"packages/server",
"packages/shared",
"packages/tools"
],
"activationEvents": [
"onLanguage:ie-lua",
"onLanguage:ie-menu",
"onCommand:ieLua.validateDocument",
"onCommand:ieLua.validateWorkspace",
"onCommand:ieLua.reloadApiData",
"onCommand:ieLua.showApiSource",
"onCommand:ieLua.openServerLog"
],
"contributes": {
"languages": [
{
"id": "ie-lua",
"aliases": [
"IE Lua",
"ie-lua"
],
"extensions": [
".lua"
],
"configuration": "./language-configuration.json"
},
{
"id": "ie-menu",
"aliases": [
"IE Menu",
"ie-menu"
],
"extensions": [
".menu"
],
"configuration": "./language-configuration.json"
}
],
"grammars": [
{
"language": "ie-lua",
"scopeName": "source.ie-lua",
"path": "./syntaxes/ie-lua.tmLanguage.json"
},
{
"language": "ie-menu",
"scopeName": "source.ie-menu",
"path": "./syntaxes/ie-menu.tmLanguage.json",
"embeddedLanguages": {
"meta.embedded.block.lua.ie-menu": "ie-lua",
"meta.embedded.expression.lua.ie-menu": "ie-lua"
}
}
],
"configuration": {
"title": "IE Lua",
"properties": {
"ieLua.dialect": {
"scope": "resource",
"type": "string",
"enum": [
"lua52",
"luajit"
],
"default": "lua52",
"description": "Controls which Lua dialect the language server parses and validates."
},
"ieLua.validation.mode": {
"scope": "resource",
"type": "string",
"enum": [
"manual",
"save",
"type",
"saveAndType"
],
"default": "save",
"description": "Controls when diagnostics are produced. Type-based modes use the configured validation debounce delay."
},
"ieLua.validation.debounceMs": {
"scope": "resource",
"type": "integer",
"minimum": 1,
"maximum": 2147483647,
"default": 300,
"markdownDescription": "Controls the delay in milliseconds before diagnostics run after typing when `#ieLua.validation.mode#` is `type` or `saveAndType`. The default is 300 ms. Lower values make diagnostics appear sooner but may increase CPU usage during rapid edits; higher values reduce repeated work but delay diagnostic feedback."
},
"ieLua.symbolSources.enabled": {
"scope": "resource",
"type": "array",
"items": {
"type": "string",
"enum": [
"ee-game-lua-functions",
"eeex-functions",
"ee-game-structures-x64",
"lua52",
"luajit",
"ee-utility-functions"
]
},
"default": [
"ee-game-lua-functions",
"eeex-functions",
"ee-game-structures-x64",
"lua52",
"luajit",
"ee-utility-functions"
],
"description": "Controls which generated API symbol sections are enabled."
},
"ieLua.diagnostics.unknownGlobals": {
"scope": "resource",
"type": "string",
"enum": [
"off",
"hint",
"warning"
],
"default": "off",
"description": "Controls diagnostics for unknown global identifiers."
},
"ieLua.formatter.configPath": {
"scope": "resource",
"type": "string",
"default": ".stylua.toml",
"description": "Reserved for compatibility; currently unused. Formatting only removes trailing spaces and tabs outside Lua strings and comments, and leaves .menu documents unchanged."
},
"ieLua.menu.blockKeys": {
"scope": "resource",
"type": "array",
"items": {
"type": "string"
},
"default": [
"action",
"onOpen",
"onopen",
"onClose",
"onclose",
"on escape"
],
"description": "Menu DSL keys whose quoted values are parsed as Lua blocks."
},
"ieLua.menu.expressionKeys": {
"scope": "resource",
"type": "array",
"items": {
"type": "string"
},
"default": [
"enabled",
"clickable"
],
"description": "Menu DSL keys whose quoted values are parsed as Lua expressions."
}
}
},
"commands": [
{
"command": "ieLua.validateDocument",
"title": "IE Lua: Validate Document"
},
{
"command": "ieLua.validateWorkspace",
"title": "IE Lua: Validate Workspace"
},
{
"command": "ieLua.reloadApiData",
"title": "IE Lua: Reload API Data"
},
{
"command": "ieLua.showApiSource",
"title": "IE Lua: Show API Source"
},
{
"command": "ieLua.openServerLog",
"title": "IE Lua: Open Server Log"
}
],
"semanticTokenTypes": [
{
"id": "namespace",
"description": "API namespace or table"
},
{
"id": "function",
"description": "Function"
},
{
"id": "method",
"description": "Method"
},
{
"id": "parameter",
"description": "Parameter"
},
{
"id": "variable",
"description": "Variable"
},
{
"id": "property",
"description": "Property"
}
],
"semanticTokenModifiers": [
{
"id": "declaration",
"description": "Declaration"
},
{
"id": "readonly",
"description": "Read-only symbol"
},
{
"id": "deprecated",
"description": "Deprecated symbol"
}
]
},
"scripts": {
"clean": "tsc -b --clean",
"compile": "tsc -b",
"bundle": "npm run compile && npm run bundle:client && npm run bundle:server",
"bundle:client": "esbuild packages/client/src/extension.ts --bundle --platform=node --format=cjs --external:vscode --sourcemap --outfile=dist/client/extension.js",
"bundle:server": "esbuild packages/server/src/server.ts --bundle --platform=node --format=cjs --sourcemap --outfile=dist/server/server.js",
"watch": "tsc -b --watch",
"lint": "eslint .",
"format:check": "prettier --check .",
"format": "prettier --write .",
"test": "npm run compile && node scripts/run-tests.cjs",
"ingest:docs": "node dist/tools/ingest-docs.js",
"package": "npm run bundle && vsce package --no-dependencies",
"package:pre-release": "npm run bundle && vsce package --pre-release --no-dependencies",
"package:audit": "node dist/tools/audit-package.js",
"publish:marketplace": "vsce publish --packagePath ./*.vsix",
"publish:marketplace:pre-release": "vsce publish --pre-release --packagePath ./*.vsix",
"verify": "npm run compile && npm run lint && npm run format:check && npm test && npm run bundle && npm run package:audit",
"test:lsp": "node --test tests/lsp.test.cjs",
"test:features": "node --test tests/features.test.cjs",
"test:editor": "node tests/editor/run.cjs",
"policy:check": "node scripts/policy.cjs",
"package:audit:vsix": "node scripts/audit-vsix.cjs",
"release:check": "node scripts/release-policy.cjs"
},
"dependencies": {
"luaparse": "^0.3.1",
"vscode-languageclient": "^10.1.1",
"vscode-languageserver": "^10.1.1",
"vscode-languageserver-textdocument": "^1.0.12",
"vscode-uri": "^3.2.0"
},
"devDependencies": {
"@types/node": "^26.5.1",
"@types/vscode": "1.100.0",
"@typescript-eslint/eslint-plugin": "^8.70.0",
"@typescript-eslint/parser": "^8.69.0",
"@vscode/test-electron": "^3.1.0",
"@vscode/vsce": "^4.0.0",
"esbuild": "^0.28.2",
"eslint": "^10.11.0",
"prettier": "^3.9.8",
"typescript": "^6.0.3",
"js-yaml": "5.4.1",
"jszip": "3.10.2",
"semver": "7.8.5",
"vscode-textmate": "9.3.2",
"vscode-oniguruma": "2.0.1"
}
}