-
-
Notifications
You must be signed in to change notification settings - Fork 19
/
package.json
345 lines (345 loc) · 13.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
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
{
"name": "asm-code-lens",
"displayName": "ASM Code Lens",
"version": "2.6.1",
"publisher": "maziac",
"description": "A language server that enables code lens, references, hover information, symbol renaming and the outline view for assembler files.",
"author": {
"name": "Thomas Busse"
},
"license": "MIT",
"keywords": [
"assembler",
"references",
"code lens",
"z80",
"x86",
"multi-root ready"
],
"repository": {
"type": "git",
"url": "https://github.com/maziac/asm-code-lens"
},
"sponsor": {
"url": "https://github.com/sponsors/maziac"
},
"bugs": {
"url": "https://github.com/maziac/asm-code-lens/issues"
},
"engines": {
"vscode": "^1.71.0"
},
"icon": "assets/local/icon.png",
"categories": [
"Programming Languages"
],
"activationEvents": [],
"main": "./out/extension.js",
"contributes": {
"views": {
"explorer": [
{
"type": "webview",
"id": "asm-code-lens.calcview-explorer",
"name": "Hexadecimal Calculator",
"icon": "assets/local/hexcalc_icon.svg",
"contextualTitle": "Hex Calculator",
"when": "config.asm-code-lens.hexCalculator.showInExplorer"
}
],
"debug": [
{
"type": "webview",
"id": "asm-code-lens.calcview-debug",
"name": "Hexadecimal Calculator",
"icon": "assets/local/hexcalc_icon.svg",
"contextualTitle": "Hex Calculator",
"when": "config.asm-code-lens.hexCalculator.showInDebug"
}
]
},
"configuration": {
"type": "object",
"title": "asm-code-lens configuration",
"properties": {
"asm-code-lens.enableWorkspaceSymbols": {
"order": 11,
"scope": "resource",
"type": "boolean",
"default": true,
"markdownDescription": "Enable/disable ['Open symbol by name'](https://code.visualstudio.com/docs/editor/editingevolved#_open-symbol-by-name)"
},
"asm-code-lens.workspaceSymbolsRequiredLength": {
"order": 12,
"scope": "resource",
"type": "number",
"default": 2,
"markdownDescription": "The number of characters required before symbols will be presented."
},
"asm-code-lens.enableOutlineView": {
"order": 21,
"scope": "resource",
"type": "boolean",
"default": true,
"markdownDescription": "Enable/disable outline view for the active document."
},
"asm-code-lens.enableCodeLenses": {
"order": 31,
"scope": "resource",
"type": "boolean",
"default": true,
"markdownDescription": "Enable/disable the display of code lenses ([references](https://code.visualstudio.com/docs/editor/editingevolved#_reference-information)) above labels."
},
"asm-code-lens.enableHovering": {
"order": 41,
"scope": "resource",
"type": "boolean",
"default": true,
"markdownDescription": "Enable/disable showing the comments while hovering labels etc."
},
"asm-code-lens.enableCompletions": {
"order": 51,
"scope": "resource",
"type": "boolean",
"default": true,
"markdownDescription": "Enable/disable symbol input completion."
},
"asm-code-lens.completionsRequiredLength": {
"order": 52,
"scope": "resource",
"type": "number",
"default": 1,
"markdownDescription": "The number of characters required before completion proposals will be presented."
},
"asm-code-lens.enableGotoDefinition": {
"order": 61,
"scope": "resource",
"type": "boolean",
"default": true,
"markdownDescription": "Enable/disable ['Go to Definition'](https://code.visualstudio.com/docs/editor/editingevolved#_go-to-definition)."
},
"asm-code-lens.enableFindAllReferences": {
"order": 71,
"scope": "resource",
"type": "boolean",
"default": true,
"markdownDescription": "Enable/disable 'Find All References'."
},
"asm-code-lens.enableRenaming": {
"order": 81,
"scope": "resource",
"type": "boolean",
"default": true,
"markdownDescription": "Enable/disable the possibility to [rename](https://code.visualstudio.com/docs/editor/editingevolved#_rename-symbol) labels. You need to reload the extension to take effect."
},
"asm-code-lens.enableFolding": {
"order": 86,
"scope": "resource",
"type": "boolean",
"default": true,
"markdownDescription": "Enable/disable the folding of e.g. labels in asm files."
},
"asm-code-lens.comments.toggleLineCommentPrefix": {
"order": 91,
"scope": "application",
"markdownDescription": "Configure the prefix used when toggling the line comment.",
"type": "string",
"default": ";"
},
"asm-code-lens.enablePushPopMatching": {
"order": 92,
"scope": "application",
"markdownDescription": "Enable highlighting of matching push/pop pairs.",
"type": "boolean",
"default": true
},
"asm-code-lens.labels.colon": {
"order": 101,
"scope": "resource",
"markdownDescription": "Determines if labels with or without or both should be recognized.\nPlease note: labels without colons cannot be determined in list files.",
"type": "string",
"enum": [
"Both",
"With colon",
"Without colon"
],
"enumDescriptions": [
"Labels with and without a trailing colon",
"Only labels with a trailing colon",
"Only labels without a trailing colon"
],
"default": "Both"
},
"asm-code-lens.labels.excludes": {
"order": 102,
"scope": "resource",
"markdownDescription": "Configure here a comma separated list of words that should not be recognized as labels. E.g. if asm-code-lens wrongly interprets an assembler directive as label you can exclude it here. For example `if;then;else;elif;endif`. The exclude is case-insensitive.",
"type": "string",
"default": ""
},
"asm-code-lens.excludeFiles": {
"order": 111,
"scope": "resource",
"type": "string",
"default": "",
"markdownDescription": "Choose what files or directories to exclude e.g `**/*.{inc,s}`."
},
"asm-code-lens.hexCalculator.showInExplorer": {
"order": 121,
"scope": "window",
"markdownDescription": "Set to false to disable calculator in explorer view.",
"type": "boolean",
"default": true
},
"asm-code-lens.hexCalculator.showInDebug": {
"order": 122,
"scope": "resource",
"markdownDescription": "Set to false to disable calculator in debug view.",
"type": "boolean",
"default": true
},
"asm-code-lens.hexCalculator.hexPrefix": {
"order": 123,
"scope": "application",
"markdownDescription": "The prefix to use for hex values, e.g. `0x` or `$`",
"type": "string",
"default": "0x"
},
"asm-code-lens.donated": {
"order": 1000,
"scope": "application",
"markdownDescription": "If you donated (press the `Donate...` button in hex calculator to do so) you can hide the button by setting this parameter.",
"type": "boolean",
"default": false
}
}
},
"commands": [
{
"command": "asm-code-lens.whatsNew",
"title": "Show \"What's New\" page of this ASM-Code-Lens release.",
"category": "asm-code-lens"
},
{
"command": "asm-code-lens.find-labels-with-no-reference",
"title": "Find Labels with no Reference",
"category": "asm-code-lens"
}
],
"menus": {
"editor/context": [
{
"when": "resourceLangId == asm-collection || resourceLangId == asm-list-file",
"command": "asm-code-lens.find-labels-with-no-reference",
"group": "0_navigation@10"
}
],
"commandPalette": [
{
"command": "asm-code-lens.find-labels-with-no-reference",
"when": "false"
}
]
},
"languages": [
{
"id": "asm-collection",
"extensions": [
".a80",
".z80",
".asm",
".inc",
".s"
],
"aliases": [
"Assembler file"
],
"configuration": "./config/asm-collection.language.configuration.json"
},
{
"id": "asm-list-file",
"extensions": [
".list",
".lis"
],
"aliases": [
"Assembler list file"
]
},
{
"id": "asm-markdown-codeblock"
},
{
"id": "asm-list-markdown-codeblock"
}
],
"grammars": [
{
"language": "asm-collection",
"scopeName": "source.asm",
"path": "./grammar/asm.json"
},
{
"language": "asm-list-file",
"scopeName": "source.asm.list",
"path": "./grammar/asm_list.json"
},
{
"language": "asm-markdown-codeblock",
"scopeName": "markdown.asm.codeblock",
"path": "./grammar/asm_markdown_codeblock.json",
"injectTo": [
"text.html.markdown"
]
},
{
"language": "asm-list-markdown-codeblock",
"scopeName": "markdown.asm.list.codeblock",
"path": "./grammar/asm_list_markdown_codeblock.json",
"injectTo": [
"text.html.markdown"
]
}
],
"problemMatchers": [
{
"name": "problem-matcher-sjasmplus",
"owner": "asm-code-lens",
"fileLocation": "autoDetect",
"pattern": [
{
"regexp": "^(.*)\\((\\d+)\\):\\s+(warning|error):\\s+(.*)$",
"file": 1,
"line": 2,
"severity": 3,
"message": 4
}
]
}
]
},
"scripts": {
"compile": "tsc -p ./",
"watch-tsc": "tsc -w -p ./",
"test": "mocha -u tdd ./out/tests/",
"vscode:prepublish": "npm run esbuild-node -- --minify && npm run esbuild-browser -- --minify",
"esbuild-node": "esbuild ./src/extension.ts --bundle --outdir=out --external:vscode --format=cjs --platform=node",
"esbuild-browser": "esbuild ./src/html/hexcalc.ts ./src/html/donate.ts --bundle --outdir=out/html --platform=browser",
"watch-node": "npm run esbuild-node -- --sourcemap --watch",
"watch-browser": "npm run esbuild-browser -- --sourcemap --watch",
"package": "vsce package"
},
"dependencies": {
"path": "^0.12.7"
},
"devDependencies": {
"@types/mocha": "10.0.0",
"@types/node": "^18.8.2",
"@types/vscode": "^1.71.0",
"@types/vscode-webview": "^1.57.0",
"mocha": "^10.4.0",
"esbuild": "^0.16.9",
"source-map-support": "^0.5.21",
"typescript": "^4.8.4"
}
}