-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpackage.json
More file actions
233 lines (233 loc) · 7.17 KB
/
package.json
File metadata and controls
233 lines (233 loc) · 7.17 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
{
"name": "methodscriptvsc",
"displayName": "MethodScriptVSC",
"description": "The official Visual Studio Code extension for MethodScript support.",
"version": "2.0.0",
"license": "MIT",
"publisher": "MethodScriptVSC",
"repository": {
"type": "git",
"url": "https://github.com/LadyCailin/MethodScriptVSC"
},
"engines": {
"vscode": "^1.110.0"
},
"categories": [
"Programming Languages",
"Linters",
"Debuggers"
],
"keywords": [
"MethodScript",
"CommandHelper",
"Minecraft",
"mscript"
],
"galleryBanner": {
"color": "#C80000",
"theme": "dark"
},
"icon": "CommandHelper_Icon.png",
"preview": false,
"activationEvents": [
"onCommand:extension.msprofile",
"onLanguage:mscript",
"onDebug:mscript"
],
"main": "./dist/MethodScriptVSC.js",
"extensionKind": [
"workspace"
],
"contributes": {
"configuration": {
"title": "MethodScript",
"properties": {
"methodscript.langserv.debugModeEnabled": {
"type": "boolean",
"default": false,
"description": "If true, when the language server is started, it is started in debug mode, and awaits a connection from a Java Debugger. This setting is only meant for developers of the Language Server, and not for normal users. (Restart/reload Visual Studio Code for the setting to take effect.)"
},
"methodscript.langserv.debugPort": {
"type": "number",
"default": 9001,
"description": "If debug mode in enabled, the port to start on."
},
"methodscript.debugAdapter.debugModeEnabled": {
"type": "boolean",
"default": false,
"description": "If true, when the debug adapter is started, it is started with a Java debugger (JDWP) attached. This is only meant for developers of the debug adapter itself. (Takes effect on next debug session launch.)"
},
"methodscript.debugAdapter.debugPort": {
"type": "number",
"default": 9002,
"description": "If debug adapter debug mode is enabled, the JDWP port to start on."
},
"methodscript.debugAdapter.threadingMode": {
"type": "string",
"enum": [
"default",
"sync",
"async"
],
"default": "default",
"description": "Sets the threading mode for the main thread in the eval loop during debugging, when a breakpoint is hit. Sync blocks the main host thread, async takes a debug snapshot and returns, creating a new thread on resume, and default chooses based on the execution environment."
}
}
},
"commands": [
{
"command": "extension.globalmsprofile",
"title": "Choose Global MethodScript Profile",
"icon": "commandhelper_icon.ico"
},
{
"command": "extension.workspacemsprofile",
"title": "Choose Workspace MethodScript Profile",
"icon": "commandhelper_icon.ico"
}
],
"languages": [
{
"id": "mscript",
"extensions": [
".ms",
".msa",
".mslp"
],
"aliases": [
"MethodScript"
],
"firstLine": "#!/usr/bin/env /usr/local/bin/mscript",
"configuration": "./language-configuration.json",
"icon": {
"light": "./icons/images/ms.png",
"dark": "./icons/images/ms.png"
}
}
],
"grammars": [
{
"language": "mscript",
"scopeName": "source.mscript",
"path": "./syntaxes/mscript.tmLanguage.json"
}
],
"breakpoints": [
{
"language": "mscript"
}
],
"debuggers": [
{
"type": "mscript",
"label": "MethodScript Debug",
"languages": [
"mscript"
],
"configurationAttributes": {
"launch": {
"required": [
"program"
],
"properties": {
"program": {
"type": "string",
"description": "Absolute path to the MethodScript file to debug.",
"default": "${file}"
},
"jar": {
"type": "string",
"description": "Path to the MethodScript jar. If not set, uses the currently loaded profile."
},
"debugPort": {
"type": "number",
"description": "Port for the DAP debug server.",
"default": 6732
}
}
},
"attach": {
"properties": {
"host": {
"type": "string",
"description": "Host of the running MethodScript debug server.",
"default": "127.0.0.1"
},
"port": {
"type": "number",
"description": "Port of the running MethodScript debug server.",
"default": 6732
},
"security": {
"type": "string",
"enum": [
"none",
"keypair"
],
"description": "Security mode. 'none' uses no authentication or encryption, 'keypair' uses SSH-style key authentication.",
"default": "none"
},
"privateKeyPath": {
"type": "string",
"description": "Path to the private key file for keypair authentication. If not set, auto-detects from ~/.ssh/."
}
}
}
},
"configurationSnippets": [
{
"label": "MethodScript: Launch",
"description": "Launch and debug a MethodScript file.",
"body": {
"type": "mscript",
"request": "launch",
"name": "Debug MethodScript",
"program": "^\"\\${file}\"",
"debugPort": 6732
}
},
{
"label": "MethodScript: Attach",
"description": "Attach to a running MethodScript debug server.",
"body": {
"type": "mscript",
"request": "attach",
"name": "Attach to MethodScript",
"host": "127.0.0.1",
"port": 6732,
"security": "none"
}
}
]
}
]
},
"scripts": {
"vscode:prepublish": "webpack --mode production",
"webpack": "webpack --mode development",
"webpack-dev": "webpack --mode development --watch",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"test-compile": "tsc -p ./",
"update-deps": "node scripts/update-deps.js",
"update-deps:apply": "node scripts/update-deps.js --apply"
},
"dependencies": {
"minimist": "^1.2.8",
"vscode-languageclient": "^9.0.1"
},
"devDependencies": {
"@types/mocha": "^10.0.10",
"@types/node": "^18.19.130",
"@types/vscode": "^1.110.0",
"@typescript-eslint/eslint-plugin": "^8.57.2",
"@typescript-eslint/parser": "^8.57.2",
"@vscode/test-electron": "^2.5.2",
"eslint": "^10.1.0",
"glob": "^13.0.6",
"ts-loader": "^9.5.4",
"typescript": "^5.9.3",
"webpack": "^5.105.4",
"webpack-cli": "^4.10.0"
}
}