forked from denesfilotas/vscode-blitz3d
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
292 lines (292 loc) · 10.7 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
{
"name": "blitzforge",
"displayName": "BlitzForge",
"author": {
"name": "RydeTec"
},
"publisher": "RydeTec",
"description": "Language support for BlitzForge.",
"repository": {
"type": "git",
"url": "https://github.com/RydeTec/vscode-blitz-forge.git"
},
"version": "1.0.0",
"engines": {
"vscode": "^1.75.0"
},
"categories": [
"Programming Languages",
"Snippets",
"Debuggers"
],
"contributes": {
"languages": [
{
"id": "blitzforge",
"aliases": [
"BlitzForge",
"Blitz3D",
"BlitzBasic"
],
"extensions": [
"bb",
"bb_bak1",
"bb_bak2"
],
"configuration": "./configurations/blitzforge.language-configuration.json"
},
{
"id": "blitz3d-decls",
"aliases": [
"Blitz3D library declarations"
],
"extensions": [
"decls"
],
"configuration": "./configurations/decls.language-configuration.json"
}
],
"grammars": [
{
"language": "blitzforge",
"scopeName": "source.bb",
"path": "./syntaxes/blitzforge.tmLanguage.json"
},
{
"language": "blitz3d-decls",
"scopeName": "source.decls",
"path": "./syntaxes/decls.tmLanguage.json"
},
{
"scopeName": "source.bbdoc",
"path": "./syntaxes/bbdoc.tmLanguage.json"
}
],
"snippets": [
{
"language": "blitzforge",
"path": "./snippets/snippets.code-snippets"
}
],
"commands": [
{
"title": "Debug open file",
"category": "BlitzForge",
"command": "extension.blitzforge.debug",
"enablement": "editorLangId == blitzforge"
},
{
"title": "Run open file without debugging",
"category": "BlitzForge",
"command": "extension.blitzforge.run",
"enablement": "editorLangId == blitzforge"
},
{
"title": "Generate BlitzDoc stubs",
"category": "BlitzForge",
"command": "extension.blitzforge.generatestubs"
},
{
"title": "Open Example",
"category": "BlitzForge",
"command": "extension.blitzforge.openExample"
}
],
"debuggers": [
{
"type": "blitzforge",
"languages": [
"blitzforge"
],
"label": "Debug BlitzForge",
"program": "../out/debug.js",
"runtime": "node",
"configurationAttributes": {
"launch": {
"required": [
"bbfile"
],
"properties": {
"bbfile": {
"type": "string",
"description": "BlitzForge program to run",
"default": ""
}
}
},
"build": {
"required": [
"bbfile",
"outfile"
],
"properties": {
"bbfile": {
"type": "string",
"description": "BlitzForge program to build",
"default": ""
},
"outfile": {
"type": "string",
"description": "Name of the executable output file",
"default": "out.exe"
}
}
}
},
"initialConfigurations": [
{
"type": "blitzforge",
"request": "launch",
"name": "Run blitz program",
"bbfile": "${file}"
}
],
"configurationSnippets": [
{
"label": "BlitzForge: Debug",
"description": "New configuration for debugging bb files",
"body": {
"type": "blitzforge",
"request": "launch",
"name": "${1:Debug blitz program}",
"bbfile": "${2:main.bb}"
}
},
{
"label": "BlitzForge: Build",
"description": "New configuration for building executables from bb files",
"body": {
"type": "blitzforge",
"request": "build",
"name": "${1:Build blitz program}",
"bbfile": "${2:main.bb}",
"outfile": "${3:output.exe}"
}
}
]
}
],
"configuration": [
{
"title": "BlitzForge installation",
"properties": {
"blitzforge.installation.BlitzPath": {
"type": "string",
"description": "Root of BlitzForge installation, containing the bin folder.",
"default": ".\\compiler\\BlitzForge"
},
"blitzforge.installation.SyntaxVersion": {
"type": "string",
"description": "Version of the language syntax (BlitzForge version)",
"enum": [
"v1.117",
"v1.118 (soon)"
],
"enumDescriptions": [
"Blitz3D v1.111-v1.116 / NG",
"Blitz3D v1.117",
"NOT IMPLEMENTED YET: Blitz3D v1.118"
],
"default": "v1.117"
}
}
},
{
"title": "Outline View",
"properties": {
"blitzforge.outline.ClassicOutlineSymbols": {
"type": "boolean",
"description": "Use Blitz3D-style categorized symbols in outline view."
},
"blitzforge.outline.ParametersInOutline": {
"type": "boolean",
"description": "Include function parameters in outline view. Only works if classic view is unset."
}
}
},
{
"title": "Editor enhancements",
"properties": {
"blitzforge.editor.UseBracketsEverywhere": {
"type": "boolean",
"description": "Always use brackets on code completion, even after builtin functions where they could be omitted.",
"default": true
},
"blitzforge.editor.InsertParameterSnippets": {
"type": "boolean",
"description": "Insert a snippet with all parameters on code completion",
"default": true
},
"blitzforge.editor.UseTodos": {
"type": "string",
"enum": [
"Off",
"Information",
"Warning"
],
"enumDescriptions": [
"TODOs are not underlined",
"TODOs are underlined, but not listed in the problems window",
"TODOs are underlined and listed in problems window"
],
"description": "Display TODOs as warning messages in the problems window",
"default": "Information"
}
}
},
{
"title": "Compilation",
"properties": {
"blitzforge.compilation.AutoCompilation": {
"type": "string",
"enum": [
"Launch file",
"Open file",
"Both",
"None"
],
"enumDescriptions": [
"Compile the bbfile specified in launch configuration (recursive; falls back to open file if no bbfile is specified)",
"Compile the file which was saved",
"Compile both files",
"Don't compile automatically"
],
"description": "Choose which files to be checked by the compiler on every save",
"default": "Launch file"
}
}
}
],
"semanticTokenScopes": [
{
"language": "blitzforge",
"scopes": {
"string.link": [
"markup.underline.link"
]
}
}
]
},
"main": "./out/extension.js",
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"lint": "eslint . --ext .ts,.tsx",
"watch": "tsc -watch -p ./",
"build": "vsce package"
},
"devDependencies": {
"@types/node": "^22.10.1",
"@types/vscode": "^1.75.0",
"@typescript-eslint/eslint-plugin": "^8.17.0",
"@typescript-eslint/parser": "^8.17.0",
"eslint": "^9.16.0",
"typescript": "^5.7.2"
},
"dependencies": {
"vscode-debugadapter": "^1.51.0",
"vscode-debugprotocol": "^1.51.0",
"tree-kill": "^1.2.2"
}
}