-
Notifications
You must be signed in to change notification settings - Fork 3
/
package.json
312 lines (312 loc) · 12.6 KB
/
package.json
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
{
"name": "backseat-debug",
"displayName": "Backseat Debug",
"version": "0.5.0",
"publisher": "thejp",
"description": "Backseat (bslang, .bs) and Bssembler (.bsm) – debugger for Bssembler and syntax highlighting for both.",
"author": {
"name": "Janis Peyer"
},
"contributors": [
{
"name": "Janis Peyer",
"url": "https://github.com/TheJP"
},
{
"name": "Michael Gerhold",
"url": "https://github.com/mgerhold"
},
{
"name": "Totto16",
"url": "https://github.com/Totto16"
}
],
"license": "MIT",
"keywords": [
"backseat",
"bssembler",
"bslang",
"bs",
"bsm",
"backseatsafesystem"
],
"engines": {
"vscode": "^1.66.0"
},
"categories": [
"Debuggers",
"Programming Languages"
],
"repository": {
"type": "git",
"url": "https://github.com/Backseating-Committee-2k/vscode-backseat-debug.git"
},
"bugs": {
"url": "https://github.com/Backseating-Committee-2k/vscode-backseat-debug/issues"
},
"scripts": {
"compile": "tsc -p ./",
"lint": "eslint src --ext ts",
"typecheck": "tsc -p tsconfig.json --noEmit",
"esbuild-base": "esbuild ./src/extension.ts --bundle --tsconfig=./tsconfig.json --external:vscode --format=cjs --platform=node --outfile=dist/extension.js",
"watch": "npm run -S esbuild-base -- --sourcemap --sources-content=false --watch",
"build": "npm run -S esbuild-base -- --sourcemap --sources-content=false",
"package": "vsce package",
"publish": "vsce publish",
"publish-pre-release": "vsce publish --pre-release",
"vscode:prepublish": "rimraf dist && npm run -S esbuild-base -- --minify",
"test": "npm run typecheck"
},
"devDependencies": {
"@types/node": "^14.14.37",
"@types/vscode": "^1.66.0",
"@typescript-eslint/eslint-plugin": "^5.17.0",
"@typescript-eslint/parser": "^5.17.0",
"@vscode/debugadapter": "^1.56.0",
"@vscode/debugadapter-testsupport": "^1.56.0",
"await-notify": "^1.0.1",
"esbuild": "^0.14.29",
"eslint": "^8.12.0",
"typescript": "^4.6.3",
"rimraf": "^3.0.2",
"tmp-promise": "^3.0.3",
"vsce": "^2.7.0"
},
"main": "./dist/extension.js",
"activationEvents": [
"onDebugResolve:bssembler",
"onCommand:extension.backseat-debug.runEditorContents",
"onCommand:extension.backseat-debug.debugEditorContents",
"onLanguage:bslang",
"onLanguage:bssembler"
],
"contributes": {
"languages": [
{
"id": "bssembler",
"extensions": [
".bsm"
],
"configuration": "./bssembler-language-configuration.json"
},
{
"id": "bslang",
"extensions": [
".bs"
],
"configuration": "./bslang-language-configuration.json"
}
],
"grammars": [
{
"language": "bssembler",
"scopeName": "source.bssembler",
"path": "./syntaxes/bssembler.tmLanguage.json"
},
{
"language": "bslang",
"scopeName": "source.bslang",
"path": "./syntaxes/bslang.tmLanguage.json"
}
],
"menus": {
"editor/title/run": [
{
"command": "extension.backseat-debug.runEditorContents",
"when": "resourceLangId == bssembler",
"group": "navigation@1"
},
{
"command": "extension.backseat-debug.debugEditorContents",
"when": "resourceLangId == bssembler",
"group": "navigation@2"
}
],
"commandPalette": [
{
"command": "extension.backseat-debug.runEditorContents",
"when": "resourceLangId == bssembler"
},
{
"command": "extension.backseat-debug.debugEditorContents",
"when": "resourceLangId == bssembler"
}
]
},
"commands": [
{
"command": "extension.backseat-debug.runEditorContents",
"title": "Run File",
"category": "Backseat Debug",
"enablement": "!inDebugMode",
"icon": "$(play)"
},
{
"command": "extension.backseat-debug.debugEditorContents",
"title": "Debug File",
"category": "Backseat Debug",
"enablement": "!inDebugMode",
"icon": "$(debug-alt)"
}
],
"breakpoints": [
{
"language": "bssembler"
}
],
"configuration": {
"title": "Backseat Debug",
"properties": {
"backseat-debug.bssemblerExternalPath": {
"type": "string",
"default": "",
"description": "Specifies an external bssembler to be used. The bssembler has to support the '-m' CLI option."
},
"backseat-debug.emulatorExternalPath": {
"type": "string",
"default": "",
"description": "Specifies an external emulator to be used. The emulator has to support the debug interface over TCP."
},
"backseat-debug.emulatorExternalPathNoGraphics": {
"type": "string",
"default": "",
"description": "Specifies an external emulator without graphics to be used. The emulator has to support the debug interface over TCP."
},
"backseat-debug.bssemblerDefaultCommand": {
"type": "string",
"default": "",
"description": "Command with arguments for external bssembler that should be used if no bssemblerCommand is specified. This setting overrules bssemblerExternalPath."
},
"backseat-debug.emulatorDefaultCommand": {
"type": "string",
"default": "",
"description": "Command with arguments for external emulator that should be used if no emulatorCommand is specified. This setting overrules emulatorExternalPath."
},
"backseat-debug.bssemblerTimeout": {
"type": "integer",
"default": 2500,
"description": "Time in milliseconds after which the bssembler is killed if it does not terminate."
},
"backseat-debug.emulatorTimeout": {
"type": "integer",
"default": 2500,
"description": "Time in milliseconds after which the emulator is killed if debugger cannot be connected."
}
}
},
"debuggers": [
{
"type": "bssembler",
"languages": [
"bssembler"
],
"label": "Bssembler Debug",
"program": "./out/debugAdapter.js",
"runtime": "node",
"configurationAttributes": {
"launch": {
"required": [
"program"
],
"properties": {
"program": {
"type": "string",
"description": "Absolute path to the bssembler file.",
"default": "^\"\\${file}\""
},
"stopOnEntry": {
"type": "boolean",
"description": "Automatically stop after launch.",
"default": false
},
"noGraphics": {
"type": "boolean",
"description": "Debug emulator without graphics.",
"default": false
},
"trace": {
"type": "boolean",
"description": "Enable logging of the Debug Adapter Protocol.",
"default": false
},
"bssemblerCommand": {
"type": [
"string",
"null"
],
"description": "Command with arguments for external bssembler (typically Upholsterer2k).",
"default": null
},
"emulatorCommand": {
"type": [
"string",
"null"
],
"description": "Command with arguments for external emulator (typically BackseatSafeSystem2k).",
"default": null
}
}
}
},
"initialConfigurations": [
{
"type": "bssembler",
"request": "launch",
"name": "Current File",
"program": "${file}",
"stopOnEntry": false
}
],
"configurationSnippets": [
{
"label": "Bssembler: Launch File",
"description": "A new configuration for debugging bssembler files.",
"body": {
"type": "bssembler",
"request": "launch",
"name": "Current File",
"program": "^\"\\${workspaceFolder}/path/to/file.bsm\"",
"stopOnEntry": false
}
},
{
"label": "Bssembler: Launch Editor File",
"description": "A new configuration for debugging the bssembler file that is currently open in the editor.",
"body": {
"type": "bssembler",
"request": "launch",
"name": "Current File",
"program": "^\"\\${file}\"",
"stopOnEntry": false
}
},
{
"label": "Bssembler: Launch File with External Bssembler and Emulator",
"description": "A new configuration for debugging bssembler files using the provided external commands.",
"body": {
"type": "bssembler",
"request": "launch",
"name": "Current File",
"program": "^\"\\${workspaceFolder}/path/to/file.bsm\"",
"stopOnEntry": false,
"bssemblerCommand": "path/to/Upholsterer2k",
"emulatorCommand": "cargo run --manifest-path path/to/BackseatSafeSystem2k/Cargo.toml --release --features debugger -- debug --font-path path/to/BackseatSafeSystem2k/resources/CozetteVector.ttf"
}
},
{
"label": "Bssembler: Launch File without Graphics",
"description": "A new configuration for debugging bssembler files without emulator graphics.",
"body": {
"type": "bssembler",
"request": "launch",
"name": "Current File",
"program": "^\"\\${file}\"",
"stopOnEntry": true,
"noGraphics": true
}
}
]
}
]
}
}