Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
531 lines (531 loc) · 16.4 KB
/
Copy pathpackage.json
File metadata and controls
531 lines (531 loc) · 16.4 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
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
{
"name": "language-hsp3",
"publisher": "honobonosun",
"displayName": "language-hsp3",
"description": "language-hsp3 for VSCode",
"version": "2.3.0",
"preview": true,
"license": "MIT",
"repository": "https://github.com/honobonosun/vscode-language-hsp3",
"engines": {
"vscode": "^1.70.0"
},
"categories": [
"Programming Languages"
],
"activationEvents": [
"onLanguage:hsp3",
"onCommand:language-hsp3.run",
"onCommand:language-hsp3.make",
"onCommand:language-hsp3.RunWithArgs",
"onCommand:language-hsp3.changeOfExecutor",
"onCommand:language-hsp3.helpman.search"
],
"main": "./out/desktop/extension.js",
"browser": "./out/web/extension.js",
"contributes": {
"commands": [
{
"command": "language-hsp3.run",
"title": "Run HSP program",
"category": "hsp",
"enablement": "editorLangId == hsp3"
},
{
"command": "language-hsp3.make",
"title": "Automatic exe file creation",
"category": "hsp",
"enablement": "editorLangId == hsp3"
},
{
"command": "language-hsp3.RunWithArgs",
"title": "Execution \"Run\" with arguments",
"category": "hsp",
"enablement": "editorLangId == hsp3"
},
{
"command": "language-hsp3.changeOfExecutor",
"title": "Change of Executor",
"category": "hsp",
"enablement": "editorLangId == hsp3"
},
{
"command": "language-hsp3.helpman.search",
"title": "Search for keyword in HDL.",
"category": "hsp",
"enablement": "editorLangId == hsp3"
}
],
"keybindings": [
{
"command": "language-hsp3.run",
"key": "ctrl+k f5",
"when": "editorLangId == hsp3"
},
{
"command": "language-hsp3.make",
"key": "ctrl+f9",
"when": "editorLangId == hsp3"
},
{
"command": "language-hsp3.helpman.search",
"key": "ctrl+f1",
"when": "editorLangId == hsp3"
}
],
"menus": {
"editor/title": [
{
"when": "resourceLangId == hsp3",
"command": "language-hsp3.run",
"group": "navigation",
"alt": "language-hsp3.make"
}
]
},
"configuration": {
"type": "object",
"title": "HSP",
"properties": {
"language-hsp3.compiler": {
"type": "string",
"default": "C:\\hsp351\\hspc.exe",
"description": "Sets the full path of the compiler.",
"scope": "resource"
},
"language-hsp3.runCommands": {
"type": "array",
"default": [
"-dwCra",
"%FILEPATH%"
],
"description": "Set run command.",
"scope": "resource"
},
"language-hsp3.makeCommands": {
"type": "array",
"default": [
"-PmCa",
"%FILEPATH%"
],
"description": "Set auto make exe file command.",
"scope": "resource"
},
"language-hsp3.wineMode": {
"type": "boolean",
"default": false,
"description": "Use wine. The file path is converted to a winepath.",
"scope": "machine"
},
"language-hsp3.useSetHSP3ROOT": {
"type": "boolean",
"default": true,
"description": "Set HSP3_ROOT parameter in exec option env",
"scope": "machine"
},
"language-hsp3.encoding": {
"type": "string",
"default": "Shift_JIS",
"description": "Sets the encoding of the characters output by the compiler.",
"scope": "resource"
},
"language-hsp3.MaxBuffer": {
"type": "integer",
"default": 204800,
"markdownDescription": "Sets the maximum number of bytes of characters received from the compiler. If exceeded, the child process is terminated and any output is truncated. [this at doc, more read hint.](https://nodejs.org/api/child_process.html#child_process_maxbuffer_and_unicode)",
"scope": "resource"
},
"language-hsp3.choiceWorkDirCur": {
"type": "boolean",
"default": false,
"description": "Specify the current directory as your working directory.",
"scope": "resource"
},
"language-hsp3.executor.enable": {
"type": "boolean",
"default": false,
"markdownDescription": "Enables new command execution capabilities for executor.",
"scope": "resource"
},
"language-hsp3.executor.index": {
"type": "string",
"default": "3.51",
"scope": "resource"
},
"language-hsp3.executor.paths": {
"type": "object",
"examples": [
{
"3.51": {
"hide": false,
"path": "C:\\hsp36\\hspc.exe",
"encoding": "Shift_JIS",
"buffer": 204800,
"helpman": "C:\\hsp36\\helphsp\\helpman.exe",
"commands": {
"run": [
"-adw2R2D2",
"%FILEPATH%"
],
"make": [
"-PmCa",
"%FILEPATH%"
]
}
}
}
],
"scope": "resource"
},
"language-hsp3.outline.enable": {
"type": "boolean",
"default": true,
"markdownDescription": "Enable the outline. *Caution* This feature uses a lot of CPU and memory.",
"scope": "resource"
},
"language-hsp3.outline.masks": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"markdownDescription": "Sets the attributes to exclude from displaying the outline. \n['label', 'deffunc'...]",
"scope": "resource"
},
"language-hsp3.helpman.enable": {
"type": "string",
"enum": [
"disable",
"online",
"local"
],
"default": "local",
"markdownDescription": "Searches HDL for a word selected in the editor or placed in the cursor.",
"scope": "resource"
},
"language-hsp3.helpman.useExecutor": {
"type": "boolean",
"default": true,
"markdownDescription": "Use `executor.paths.helpman` specified in `helpman.exe`.",
"scope": "resource"
},
"language-hsp3.helpman.path.local": {
"type": "string",
"default": "C:\\hsp351\\hsphelp\\helpman.exe",
"markdownDescription": "You must specify an absolute path to `helpman.exe`.",
"scope": "resource"
},
"language-hsp3.helpman.path.online": {
"type": "string",
"default": "",
"markdownDescription": "Specify the URL for the online help. `%s` is replaced by the search character. The code page is UTF-8 fixed.",
"scope": "resource"
},
"language-hsp3.debugMode": {
"type": "boolean",
"default": false,
"description": "詳細なデバッグログを有効にします",
"scope": "machine"
},
"language-hsp3.line-comment": {
"type": "string",
"enum": [
";",
"//"
],
"default": ";",
"description": "行をコメントアウトするときに使う記号を指定します。(既定は ;)"
},
"language-hsp3.executor.toolset": {
"type": "array",
"description": "Executor toolset settings.",
"scope": "resource",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Executorの名前"
},
"category": {
"type": "string",
"enum": [
"run",
"make",
"help",
"custom"
],
"description": "Executorのカテゴリ"
},
"continueOnError": {
"type": "boolean",
"default": false,
"description": "エラー発生時も続行するか"
},
"commands": {
"type": "array",
"description": "実行するコマンド群",
"items": {
"type": "object",
"properties": {
"command": {
"type": "string"
},
"args": {
"type": "array",
"items": {
"type": "string"
},
"default": []
},
"encoding": {
"type": "string",
"default": "utf8"
},
"env": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"default": {}
},
"shell": {
"oneOf": [
{
"type": "object",
"properties": {
"use": {
"const": false
}
},
"required": [
"use"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"use": {
"const": true
},
"path": {
"type": "string"
},
"args": {
"type": "array",
"items": {
"type": "string"
},
"default": []
}
},
"required": [
"use",
"path"
]
}
],
"default": {
"use": false
}
}
},
"required": [
"command",
"args",
"encoding",
"env",
"shell"
]
}
}
},
"required": [
"name",
"category",
"commands"
]
},
"default": []
},
"language-hsp3.env.whitelist": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "環境変数ホワイトリスト",
"scope": "machine"
},
"language-hsp3.env.blacklist": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "環境変数ブラックリスト",
"scope": "machine"
},
"language-hsp3.terminal.maxCount": {
"type": "integer",
"default": 5,
"minimum": 1,
"maximum": 20,
"description": "HSP3ターミナルの最大数制限",
"scope": "application"
},
"language-hsp3.terminal.autoCleanup": {
"type": "boolean",
"default": false,
"description": "ターミナル数制限超過時の自動削除を有効にする",
"scope": "application"
},
"language-hsp3.terminal.enablePersistence": {
"type": "boolean",
"default": false,
"description": "VS Code再起動時のターミナル復元を有効にする",
"scope": "application"
},
"language-hsp3.terminal.preserveFocus": {
"type": "boolean",
"default": false,
"description": "ターミナル実行時にフォーカスを現在のエディタに保持する",
"scope": "application"
},
"language-hsp3.terminal.waitForKeyPress": {
"type": "boolean",
"default": false,
"description": "シェルモードでの実行後にキー入力待機コマンドを自動挿入する",
"scope": "application"
}
}
},
"languages": [
{
"id": "hsp3",
"aliases": [
"HSP",
"HSP3",
"hsp",
"hsp3"
],
"extensions": [
".hsp",
".hsp.i",
".as",
".as.i"
],
"configuration": "./language-configuration.json"
},
{
"id": "hs",
"aliases": [
"hs"
],
"extensions": [
".hs"
]
}
],
"grammars": [
{
"language": "hsp3",
"scopeName": "source.hsp3",
"path": "./syntaxes/hsp3.tmLanguage.json"
},
{
"language": "hs",
"scopeName": "text.hs",
"path": "./syntaxes/hs.tmLanguage.json"
}
]
},
"scripts": {
"vscode:prepublish": "npm run build",
"prebuild": "npm run clean && npm run lint",
"build": "npm run build:all",
"build:all": "concurrently \"npm run build:desktop\" \"npm run build:web\"",
"build:desktop": "webpack --mode production",
"build:web": "webpack --mode production",
"dev": "npm run dev:desktop",
"dev:desktop": "webpack --mode development --watch",
"dev:web": "webpack --mode development --watch",
"watch": "npm run dev",
"watch:desktop": "npm run dev:desktop",
"watch:web": "npm run dev:web",
"test": "jest",
"pretest": "npm run lint",
"lint": "eslint src/**/*.ts",
"clean": "rimraf out",
"package": "vsce package",
"emit": "tsc --noEmit"
},
"devDependencies": {
"@eslint/js": "^9.27.0",
"@types/emoji-regex": "^8.0.0",
"@types/jest": "^29.5.14",
"@types/node": "^10.12.21",
"@types/opener": "^1.4.0",
"@types/string-width": "^2.0.0",
"@types/vscode": "^1.70.0",
"@typescript-eslint/eslint-plugin": "^8.33.0",
"@typescript-eslint/parser": "^8.33.0",
"@vscode/vsce": "^3.4.2",
"concurrently": "^9.1.2",
"eslint": "^9.27.0",
"eslint-config-prettier": "^10.1.5",
"eslint-plugin-prettier": "^5.4.1",
"jest": "^29.7.0",
"prettier": "^3.5.3",
"rimraf": "^6.0.1",
"ts-jest": "^29.4.0",
"ts-loader": "^9.5.2",
"typescript": "^5.8.3",
"typescript-language-server": "^4.3.4",
"webpack": "^5.99.9",
"webpack-cli": "^6.0.1",
"zod": "^3.25.34"
},
"dependencies": {
"glob": "^11.1.0",
"i18next": "^25.2.1",
"iconv-lite": "^0.4.24",
"minimatch": "^10.2.4",
"opener": "^1.5.1",
"string-width": "^7.2.0",
"untildify": "^5.0.0"
},
"capabilities": {
"untrustedWorkspaces": {
"supported": "limited",
"description": "This extension does not read settings from the project until they are trusted.",
"restrictedConfigurations": [
"language-hsp3.compiler",
"language-hsp3.runCommands",
"language-hsp3.makeCommands",
"language-hsp3.wineMode",
"language-hsp3.useSetHSP3ROOT",
"language-hsp3.encoding",
"language-hsp3.MaxBuffer",
"language-hsp3.choiceWorkDirCur",
"language-hsp3.executor.enable",
"language-hsp3.executor.index",
"language-hsp3.executor.paths",
"language-hsp3.outline.enable",
"language-hsp3.outline.masks",
"language-hsp3.helpman.enable",
"language-hsp3.helpman.useExecutor",
"language-hsp3.helpman.path.local",
"language-hsp3.helpman.path.online"
]
},
"virtualWorkspaces": {
"supported": "limited",
"description": "Basic language support is available in virtual workspaces. Advanced features like compilation require a local environment."
}
},
"volta": {
"node": "20.19.3"
}
}