Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
314 lines (314 loc) · 11.1 KB
/
Copy pathpackage.json
File metadata and controls
314 lines (314 loc) · 11.1 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
{
"name": "fastbasic-debugger",
"displayName": "FastBasic Debugger",
"version": "0.9.0",
"publisher": "ericcarr",
"description": "Runs FastBasic on an Atari emulator, providing debugging support to set breakpoints, step through code, view and change variables. Downloads FastBasic and Atari Emulator automatically on Windows and Mac",
"author": "Eric Carr",
"license": "MIT",
"keywords": [
"fastbasic",
"atari",
"multi-root ready"
],
"engines": {
"vscode": "^1.66.0"
},
"icon": "images/icon.png",
"categories": [
"Debuggers"
],
"private": false,
"repository": {
"type":"git",
"url": "https://github.com/EricCarrGH/vscode-fastbasic-debugger.git"
},
"bugs": {
"url": "https://forums.atariage.com/topic/351055-fastbasic-debugger-extension-for-vscode/"
},
"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/glob": "^7.2.0",
"@types/mocha": "^9.1.0",
"@types/node": "^14.14.37",
"@types/node-fetch": "^2.6.4",
"@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",
"base64-js": "^1.5.1",
"esbuild": "^0.14.29",
"eslint": "^8.12.0",
"events": "^3.3.0",
"glob": "^7.2.0",
"mocha": "^9.2.2",
"path-browserify": "^1.0.1",
"rimraf": "^3.0.2",
"typescript": "^4.6.3",
"url": "^0.11.0",
"vsce": "^2.7.0"
},
"main": "./dist/extension.js",
"activationEvents": [
"onDebugResolve:fastbasic",
"onDebugDynamicConfigurations:fastbasic",
"onCommand:extension.fastbasic-debugger.getProgramName",
"onLanguage:basic"
],
"workspaceTrust": {
"request": "never"
},
"contributes": {
"configuration": {
"title": "FastBasic Debug",
"properties": {
"fastbasic.defaultEmulator": {
"type": "string",
"enum": ["atari800", "fujisan"],
"default": "atari800",
"description": "Emulator to use when you run or debug from the editor without a launch config, or when a launch config doesn't set emulatorType. 'atari800' = Atari800MacX or Altirra; 'fujisan' = Fujisan over TCP."
},
"fastbasic.defaultLaunchConfiguration": {
"type": "string",
"default": "",
"description": "Launch configuration name to use for 'Debug File' and 'Run File' (e.g. 'Debug FastBASIC (Fujisan)'). If set, the editor buttons use this config from launch.json; otherwise they use an inline config with the default emulator. Works on Windows, macOS, and Linux."
}
}
},
"themes": [
{
"label": "FastBasic Atari",
"uiTheme": "vs-dark",
"path": "./themes/fastbasic-atari-theme.json"
}
],
"languages": [
{
"id": "basic",
"aliases": [
"Atari FastBasic",
"FastBasic",
"basic"
],
"extensions": [
".bas",
".fb",
".lst"
],
"configuration": "./language-configuration.json"
}
],
"grammars": [
{
"language": "basic",
"scopeName": "source.basic",
"path": "./syntaxes/basic.tmLanguage.json"
}
],
"menus": {
"editor/title/run": [
{
"command": "extension.fastbasic-debugger.runEditorContents",
"when": "resourceLangId == basic",
"group": "navigation@1"
},
{
"command": "extension.fastbasic-debugger.debugEditorContents",
"when": "resourceLangId == basic",
"group": "navigation@2"
}
],
"commandPalette": [
{
"command": "extension.fastbasic-debugger.debugEditorContents",
"when": "resourceLangId == basic"
},
{
"command": "extension.fastbasic-debugger.runEditorContents",
"when": "resourceLangId == basic"
}
],
"debug/variables/context": [
{
"command": "extension.fastbasic-debugger.toggleFormatting",
"when": "debugType == 'FastBasic' && debugProtocolVariableMenuContext == 'simple'"
}
]
},
"commands": [
{
"command": "extension.fastbasic-debugger.debugEditorContents",
"title": "Debug File",
"category": "FastBasic Debug",
"enablement": "!inDebugMode",
"icon": "$(debug-alt)"
},
{
"command": "extension.fastbasic-debugger.runEditorContents",
"title": "Run File",
"category": "FastBasic Debug",
"enablement": "!inDebugMode",
"icon": "$(play)"
},
{
"command": "extension.fastbasic-debugger.toggleFormatting",
"title": "Toggle between decimal and hex formatting"
}
],
"breakpoints": [
{
"language": "basic"
}
],
"debuggers": [
{
"type": "fastbasic",
"languages": [
"basic"
],
"label": "FastBasic Debugger",
"runtime": "node",
"configurationAttributes": {
"launch": {
"required": [
"sourceFile",
"compilerPath"
],
"properties": {
"sourceFile": {
"type": "string",
"description": "Absolute path to .BAS file.",
"default": "${file}"
},
"trace": {
"type": "boolean",
"description": "Enable logging of the Debug Adapter Protocol.",
"default": true
},
"compilerPath": {
"type": "string",
"description": "Full path to the FastBasic compiler.",
"default": "E.G. c:/fastbasic/fastbasic.exe"
},
"emulatorType": {
"type": "string",
"enum": ["atari800", "fujisan"],
"description": "Which emulator to use. Use 'atari800' to launch Atari800MacX or Altirra. Use 'fujisan' to connect to an already-running Fujisan instance via its TCP server.",
"default": "atari800"
},
"emulatorPath": {
"type": "string",
"description": "Path to the emulator executable. Only used when emulatorType is 'atari800'. Ignored for Fujisan.",
"default": "E.G. C:/atari/Altirra/Altirra64.exe"
},
"windowsPaths": {
"type": "boolean",
"default": true,
"description": "Set to true to force calling emulatorPath with Windows path style (for running Altirra using Wine)"
},
"fujisanHost": {
"type": "string",
"description": "Host where Fujisan's TCP server is running. Only used when emulatorType is 'fujisan'.",
"default": "localhost"
},
"fujisanPort": {
"type": "number",
"description": "Port for Fujisan's TCP server. Only used when emulatorType is 'fujisan'.",
"default": 6502
},
"autoConfigureH4": {
"type": "boolean",
"description": "When using Fujisan, set H4: to your project's bin folder over TCP so the debugger can talk to the program. Set to false if you map H4: yourself.",
"default": true
},
"fujisanBootMode": {
"type": "string",
"enum": ["none", "warm", "cold"],
"enumDescriptions": [
"No explicit boot — BINLOAD handles the internal reset when loading the XEX. FujiNet stays running. Recommended when using FujiNet.",
"Warm boot before loading XEX. Resets Atari state without restarting FujiNet. Use for extra state cleanup with FujiNet.",
"Stop FujiNet-PC, restart it fresh, then load XEX. Use when you need a clean FujiNet state so network apps work correctly after load."
],
"description": "Boot mode for XEX load on Fujisan. 'none' (default): just load XEX, FujiNet stays up. 'warm': warm boot then load XEX. 'cold': stop FujiNet → start FujiNet → load XEX.",
"default": "none"
}
}
}
},
"initialConfigurations": [
{
"type": "fastbasic",
"request": "launch",
"name": "Debug FastBASIC",
"sourceFile": "${file}",
"compilerPath": "E.G. c:/fastbasic/fastbasic.exe",
"emulatorType": "atari800",
"emulatorPath": "E.G. C:/atari/Altirra/Altirra64.exe",
"windowsPaths": true
},
{
"type": "fastbasic",
"request": "launch",
"name": "Debug FastBASIC (Fujisan)",
"sourceFile": "${file}",
"compilerPath": "E.G. c:/fastbasic/fastbasic.exe",
"emulatorType": "fujisan",
"fujisanHost": "localhost",
"fujisanPort": 6502
}
],
"configurationSnippets": [
{
"label": "FastBasic Debug: Launch",
"description": "A new configuration for 'debugging' a user selected FastBasic file.",
"body": {
"type": "fastbasic",
"request": "launch",
"name": "Debug FastBASIC",
"sourceFile": "${file}",
"compilerPath": "E.G. c:/fastbasic/fastbasic.exe",
"emulatorType": "atari800",
"emulatorPath": "E.G. C:/atari/Altirra/Altirra64.exe",
"windowsPaths": true
}
},
{
"label": "FastBasic Debug: Fujisan",
"description": "Debug with Fujisan over TCP. H4: is set to your project's bin folder automatically. Start Fujisan and turn on Tools → TCP Server first.",
"body": {
"type": "fastbasic",
"request": "launch",
"name": "Debug FastBASIC (Fujisan)",
"sourceFile": "${file}",
"compilerPath": "E.G. c:/fastbasic/fastbasic.exe",
"emulatorType": "fujisan",
"fujisanHost": "localhost",
"fujisanPort": 6502
}
}
],
"variables": {
"AskForProgramName": "extension.fastbasic-debugger.getProgramName"
}
}
]
},
"dependencies": {
"decompress": "^4.2.1",
"node-fetch": "^3.3.1"
}
}