-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
293 lines (293 loc) · 8.33 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
{
"name": "vscode-language-applesoft",
"displayName": "Applesoft BASIC",
"description": "Language support for Applesoft BASIC",
"icon": "language-applesoft-icon.png",
"version": "2.1.0",
"license": "GPL-3.0-only",
"publisher": "dfgordon",
"repository": {
"type": "git",
"url": "https://github.com/dfgordon/vscode-language-applesoft"
},
"engines": {
"vscode": "^1.85.0"
},
"categories": [
"Programming Languages"
],
"main": "./client/out/extension.js",
"contributes": {
"configuration": {
"title": "Applesoft BASIC",
"properties": {
"applesoft.flag.caseSensitive": {
"enum": ["ignore","info","warn","error"],
"default": "ignore",
"description": "Flag lower case in reserved words or variables."
},
"applesoft.flag.terminalString": {
"enum": ["ignore","info","warn","error"],
"default": "warn",
"description": "Flag missing unquotes. In Applesoft, strings without an unquote run to end-of-line."
},
"applesoft.flag.extendedCall": {
"enum": ["ignore","info","warn","error"],
"default": "error",
"markdownDescription": "Flag extended `CALL` syntax"
},
"applesoft.flag.badReferences": {
"enum": ["ignore","info","warn","error"],
"default": "error",
"markdownDescription": "Flag bad line number references"
},
"applesoft.flag.undeclaredArrays": {
"enum": ["ignore","info","warn","error"],
"default": "warn",
"description": "Flag arrays that have never been dimensioned."
},
"applesoft.flag.undefinedVariables": {
"enum": ["ignore","info","warn","error"],
"default": "warn",
"description": "Flag variables that have never been assigned."
},
"applesoft.flag.collisions": {
"enum": ["ignore","info","warn","error"],
"default": "warn",
"description": "Flag long variable name collisions. In Applesoft, variables of the same type with the same first two characters share the same storage, i.e., are the same."
},
"applesoft.hovers.specialAddresses": {
"type": "boolean",
"default": true,
"markdownDescription": "Show hovers for special addresses such as ROM routines, soft switches, etc."
},
"applesoft.hovers.keywords": {
"type": "boolean",
"default": true,
"markdownDescription": "Show hovers for keywords such as `PRINT`, `FOR`, etc.."
},
"applesoft.completions.lowerCase": {
"type": "boolean",
"default": false,
"markdownDescription": "Use lower case in completions and snippets (case sensitive must be `ignore`)."
},
"applesoft.completions.negativeAddresses": {
"type": "boolean",
"default": false,
"markdownDescription": "Use negative addresses in completions"
},
"applesoft.vii.newMachine": {
"enum": [
"appleiiplus",
"appleiie",
"appleiic",
"appleiicplus"
],
"default": "appleiie",
"markdownDescription": "Type of machine to use when spawning a new Virtual ][ machine"
},
"applesoft.vii.speed": {
"enum": [
"regular",
"high",
"maximum"
],
"default": "maximum",
"markdownDescription": "Emulator speed to set before running code in Virtual ]["
},
"applesoft.vii.color": {
"type": "boolean",
"default": false,
"markdownDescription": "Use color monitor when spawning a new Virtual ][ machine"
},
"applesoft.detokenizer.escapes": {
"type": "array",
"default": [
10,
13
],
"markdownDescription": "ASCII control codes that should be escaped by the detokenizer"
},
"applesoft.detokenizer.maxLines": {
"type": "number",
"default": 5000,
"markdownDescription": "Terminate detokenization after this many lines"
},
"applesoft.detokenizer.maxLineLength": {
"type": "number",
"default": 255,
"markdownDescription": "Detokenizer forces a new line after this many characters"
},
"applesoft.warn.run": {
"type": "boolean",
"default": true,
"markdownDescription": "Warn before writing to an emulator or emulator state file"
},
"applesoft.trace.server": {
"enum": [
"verbose",
"silent"
],
"default": "silent",
"markdownDescription": "Logging level for client/server messages"
}
}
},
"languages": [
{
"id": "applesoft",
"extensions": [
".bas",
".abas",
".A"
],
"firstLine": "^ *[0-9][0-9 ]*.*(HOME|home|HGR|hgr|HTAB|htab|ONERR|onerr|DEF FN|def fn).*",
"configuration": "./language-configuration.json"
}
],
"commands": [
{
"command": "applesoft.commentLines",
"title": "applesoft: (Un)Comment Selection"
},
{
"command": "applesoft.renumber",
"title": "applesoft: Renumber Lines"
},
{
"command": "applesoft.move",
"title": "applesoft: Move Lines"
},
{
"command": "applesoft.runFrontVii",
"title": "applesoft: Run in Virtual ][ front machine"
},
{
"command": "applesoft.enterFrontVii",
"title": "applesoft: Enter in Virtual ][ front machine"
},
{
"command": "applesoft.runNewVii",
"title": "applesoft: Run in Virtual ][ new machine"
},
{
"command": "applesoft.enterNewVii",
"title": "applesoft: Enter in Virtual ][ new machine"
},
{
"command": "applesoft.getFrontVii",
"title": "applesoft: Insert program from Virtual ][ front machine"
},
{
"command": "applesoft.getAppleWinSaveState",
"title": "applesoft: Insert program from AppleWin save state"
},
{
"command": "applesoft.setAppleWinSaveState",
"title": "applesoft: Store program in AppleWin save state"
},
{
"command": "applesoft.getFromDiskImage",
"title": "applesoft: Insert program from disk image"
},
{
"command": "applesoft.saveToDiskImage",
"title": "applesoft: Save program to disk image"
},
{
"command": "applesoft.showTokenizedProgram",
"title": "applesoft: Show tokenized program"
},
{
"command": "applesoft.minify",
"title": "applesoft: Minify"
}
],
"menus": {
"commandPalette": [
{
"command": "applesoft.commentLines",
"when": "editorLangId == applesoft"
},
{
"command": "applesoft.renumber",
"when": "editorLangId == applesoft"
},
{
"command": "applesoft.move",
"when": "editorLangId == applesoft"
},
{
"command": "applesoft.runFrontVii",
"when": "editorLangId == applesoft"
},
{
"command": "applesoft.enterFrontVii",
"when": "editorLangId == applesoft"
},
{
"command": "applesoft.runNewVii",
"when": "editorLangId == applesoft"
},
{
"command": "applesoft.enterNewVii",
"when": "editorLangId == applesoft"
},
{
"command": "applesoft.getFrontVii",
"when": "editorLangId == applesoft"
},
{
"command": "applesoft.getAppleWinSaveState",
"when": "editorLangId == applesoft"
},
{
"command": "applesoft.setAppleWinSaveState",
"when": "editorLangId == applesoft"
},
{
"command": "applesoft.getFromDiskImage",
"when": "editorLangId == applesoft"
},
{
"command": "applesoft.saveToDiskImage",
"when": "editorLangId == applesoft"
},
{
"command": "applesoft.showTokenizedProgram",
"when": "editorLangId == applesoft"
},
{
"command": "applesoft.minify",
"when": "editorLangId == applesoft"
}
]
}
},
"scripts": {
"reset-client": "run-script-os",
"reset-client:windows": "npx rimraf client\\out && mkdir client\\out",
"reset-client:default": "npx rimraf client/out && mkdir client/out",
"vscode:prepublish": "npm run esbuild-client -- --minify",
"esbuild-client": "npm run reset-client && esbuild ./client/src/extension.ts --bundle --outfile=client/out/extension.js --external:vscode --format=cjs --platform=node",
"build": "npm run esbuild-client -- --sourcemap",
"lint": "eslint . --ext .ts,.tsx",
"test-compile": "npm run reset-client && tsc -p ./client/",
"test": "node ./client/out/test/runTest.js"
},
"devDependencies": {
"@types/mocha": "^10.0.1",
"@types/node": "^20.16.0",
"@types/vscode": "^1.85.0",
"@typescript-eslint/eslint-plugin": "^8.2.0",
"@typescript-eslint/parser": "^8.2.0",
"@vscode/test-electron": "^2.4.1",
"esbuild": "^0.23.1",
"eslint": "^9.9.0",
"glob": "^11.0.0",
"mocha": "^10.7.3",
"rimraf": "^6.0.1",
"run-script-os": "^1.1.6",
"typescript": "^5.5.4"
}
}