-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathpackage.json
More file actions
371 lines (363 loc) · 16.2 KB
/
package.json
File metadata and controls
371 lines (363 loc) · 16.2 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
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
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
{
"name": "gogo-codelens",
"displayName": "GoGo CodeLens",
"version": "1.4.2",
"description": "A VS Code extension that adds CodeLens annotations to your Go code. showing reference counts, interface implementations, and method relationships inline.",
"categories": [
"Programming Languages",
"Visualization"
],
"keywords": [
"Go",
"golang",
"CodeLens",
"implementation",
"interface",
"reference",
"relation"
],
"repository": {
"type": "git",
"url": "https://github.com/xiaoxuxxxx/gogo-codelens"
},
"license": "MIT",
"publisher": "XiaoXuxxxx",
"main": "./dist/extension.js",
"scripts": {
"vscode:prepublish": "npm run package",
"compile": "npm run check-types && npm run lint && node esbuild.js",
"watch": "npm-run-all -p watch:*",
"watch:esbuild": "node esbuild.js --watch",
"watch:tsc": "tsc --noEmit --watch --project tsconfig.json",
"package": "npm run check-types && npm run lint && node esbuild.js --production",
"compile-tests": "tsc -p . --outDir out",
"watch-tests": "tsc -p . -w --outDir out",
"pretest": "npm run compile-tests && npm run compile && npm run lint",
"test": "vscode-test",
"check-types": "tsc --noEmit",
"lint": "eslint src"
},
"contributes": {
"commands": [
{
"command": "gogoCodeLens.restart",
"title": "GoGo CodeLens: Restart extension"
}
],
"configuration": {
"title": "GoGo CodeLens",
"properties": {
"gogoCodeLens.codelens.cacheStrategy": {
"type": "string",
"default": "VERSION_AND_TIMESTAMP",
"enum": [
"VERSION_AND_TIMESTAMP",
"NO_CACHE"
],
"description": "Define the caching strategy when generating the codelens"
},
"gogoCodeLens.codelens.enabled.showReferences": {
"type": "boolean",
"default": true,
"description": "Enable CodeLens annotations for all supported symbols to show how many times they are referenced."
},
"gogoCodeLens.codelens.enabled.showImplementations": {
"type": "boolean",
"default": true,
"description": "Enable CodeLens annotations for all supported symbols to show their implementations."
},
"gogoCodeLens.codelens.function.references.isEnabled": {
"type": "boolean",
"default": true,
"description": "Enable CodeLens annotations above functions to show how many times they are referenced."
},
"gogoCodeLens.codelens.function.references.singularTemplate": {
"type": "string",
"default": "{{ count }} reference",
"description": "Template text displayed above a function with exactly one reference."
},
"gogoCodeLens.codelens.function.references.pluralTemplate": {
"type": "string",
"default": "{{ count }} references",
"description": "Template text displayed above a function with multiple references."
},
"gogoCodeLens.codelens.function.references.emptyText": {
"type": "string",
"default": "",
"description": "Text displayed above a function when no references are found. Leave empty to disable the annotation."
},
"gogoCodeLens.codelens.interface.references.isEnabled": {
"type": "boolean",
"default": true,
"description": "Enable CodeLens annotations above interfaces to show how many times they are referenced."
},
"gogoCodeLens.codelens.interface.references.singularTemplate": {
"type": "string",
"default": "{{ count }} reference",
"description": "Template text displayed above an interface with exactly one reference."
},
"gogoCodeLens.codelens.interface.references.pluralTemplate": {
"type": "string",
"default": "{{ count }} references",
"description": "Template text displayed above an interface with multiple references."
},
"gogoCodeLens.codelens.interface.references.emptyText": {
"type": "string",
"default": "",
"description": "Text displayed above an interface when no references are found. Leave empty to disable the annotation."
},
"gogoCodeLens.codelens.interface.implementBy.isEnabled": {
"type": "boolean",
"default": true,
"description": "Enable CodeLens annotations above interfaces to show how many types implement them."
},
"gogoCodeLens.codelens.interface.implementBy.singularTemplate": {
"type": "string",
"default": "↓↓ implemented below",
"description": "Template text displayed above an interface with exactly one implementation."
},
"gogoCodeLens.codelens.interface.implementBy.pluralTemplate": {
"type": "string",
"default": "↓↓ implemented by {{ count }}",
"description": "Template text displayed above an interface with multiple implementations."
},
"gogoCodeLens.codelens.interface.implementBy.emptyText": {
"type": "string",
"default": "",
"description": "Text displayed above an interface when no implementations are found. Leave empty to disable the annotation."
},
"gogoCodeLens.codelens.childMethodInterface.references.isEnabled": {
"type": "boolean",
"default": true,
"description": "Enable CodeLens annotations above interface methods to show how many times they are referenced."
},
"gogoCodeLens.codelens.childMethodInterface.references.singularTemplate": {
"type": "string",
"default": "{{ count }} reference",
"description": "Template text displayed above an interface method with exactly one reference."
},
"gogoCodeLens.codelens.childMethodInterface.references.pluralTemplate": {
"type": "string",
"default": "{{ count }} references",
"description": "Template text displayed above an interface method with multiple references."
},
"gogoCodeLens.codelens.childMethodInterface.references.emptyText": {
"type": "string",
"default": "0 references",
"description": "Text displayed above an interface method when no references are found. Leave empty to disable the annotation."
},
"gogoCodeLens.codelens.childMethodInterface.implementBy.isEnabled": {
"type": "boolean",
"default": true,
"description": "Enable CodeLens annotations above interface methods to show how many types implement them."
},
"gogoCodeLens.codelens.childMethodInterface.implementBy.singularTemplate": {
"type": "string",
"default": "↓↓ implemented below",
"description": "Template text displayed above an interface method with exactly one implementation."
},
"gogoCodeLens.codelens.childMethodInterface.implementBy.pluralTemplate": {
"type": "string",
"default": "↓↓ implemented by {{ count }}",
"description": "Template text displayed above an interface method with multiple implementations."
},
"gogoCodeLens.codelens.childMethodInterface.implementBy.emptyText": {
"type": "string",
"default": "no implementation",
"description": "Text displayed above an interface method when no implementations are found. Leave empty to disable the annotation."
},
"gogoCodeLens.codelens.method.references.isEnabled": {
"type": "boolean",
"default": true,
"description": "Enable CodeLens annotations above methods to show how many times they are referenced."
},
"gogoCodeLens.codelens.method.references.singularTemplate": {
"type": "string",
"default": "{{ count }} reference",
"description": "Template text displayed above a method with exactly one reference."
},
"gogoCodeLens.codelens.method.references.pluralTemplate": {
"type": "string",
"default": "{{ count }} references",
"description": "Template text displayed above a method with multiple references."
},
"gogoCodeLens.codelens.method.references.emptyText": {
"type": "string",
"default": "",
"description": "Text displayed above a method when no references are found. Leave empty to disable the annotation."
},
"gogoCodeLens.codelens.method.implementFrom.isEnabled": {
"type": "boolean",
"default": true,
"description": "Enable CodeLens annotations above methods to show how many interface methods they implement."
},
"gogoCodeLens.codelens.method.implementFrom.singularTemplate": {
"type": "string",
"default": "↑↑ from interface",
"description": "Template text displayed above a method that implements exactly one interface method."
},
"gogoCodeLens.codelens.method.implementFrom.pluralTemplate": {
"type": "string",
"default": "↑↑ from interface ({{ count }})",
"description": "Template text displayed above a method that implements multiple interface methods."
},
"gogoCodeLens.codelens.method.implementFrom.emptyText": {
"type": "string",
"default": "",
"description": "Text displayed above a method that does not implement any interface methods. Leave empty to disable the annotation."
},
"gogoCodeLens.codelens.struct.references.isEnabled": {
"type": "boolean",
"default": true,
"description": "Enable CodeLens annotations above structs to show how many times they are referenced."
},
"gogoCodeLens.codelens.struct.references.singularTemplate": {
"type": "string",
"default": "{{ count }} reference",
"description": "Template text displayed above a struct with exactly one reference."
},
"gogoCodeLens.codelens.struct.references.pluralTemplate": {
"type": "string",
"default": "{{ count }} references",
"description": "Template text displayed above a struct with multiple references."
},
"gogoCodeLens.codelens.struct.references.emptyText": {
"type": "string",
"default": "",
"description": "Text displayed above a struct when no references are found. Leave empty to disable the annotation."
},
"gogoCodeLens.codelens.struct.implementFrom.isEnabled": {
"type": "boolean",
"default": true,
"description": "Enable CodeLens annotations above structs to show how many interfaces they implement."
},
"gogoCodeLens.codelens.struct.implementFrom.singularTemplate": {
"type": "string",
"default": "↑↑ from interface",
"description": "Template text displayed above a struct that implements exactly one interface."
},
"gogoCodeLens.codelens.struct.implementFrom.pluralTemplate": {
"type": "string",
"default": "↑↑ from interface ({{ count }})",
"description": "Template text displayed above a struct that implements multiple interfaces."
},
"gogoCodeLens.codelens.struct.implementFrom.emptyText": {
"type": "string",
"default": "",
"description": "Text displayed above a struct that does not implement any interfaces. Leave empty to disable the annotation."
},
"gogoCodeLens.codelens.typeAlias.references.isEnabled": {
"type": "boolean",
"default": true,
"description": "Enable CodeLens annotations above type alias to show how many times they are referenced."
},
"gogoCodeLens.codelens.typeAlias.references.singularTemplate": {
"type": "string",
"default": "{{ count }} reference",
"description": "Template text displayed above a type alias with exactly one reference."
},
"gogoCodeLens.codelens.typeAlias.references.pluralTemplate": {
"type": "string",
"default": "{{ count }} references",
"description": "Template text displayed above a type alias with multiple references."
},
"gogoCodeLens.codelens.typeAlias.references.emptyText": {
"type": "string",
"default": "",
"description": "Text displayed above a type alias when no references are found. Leave empty to disable the annotation."
},
"gogoCodeLens.codelens.typeAlias.implementFrom.isEnabled": {
"type": "boolean",
"default": true,
"description": "Enable CodeLens annotations above type aliases to show how many interfaces they implement."
},
"gogoCodeLens.codelens.typeAlias.implementFrom.singularTemplate": {
"type": "string",
"default": "↑↑ from interface",
"description": "Template text displayed above a type alias that implements exactly one interface."
},
"gogoCodeLens.codelens.typeAlias.implementFrom.pluralTemplate": {
"type": "string",
"default": "↑↑ from interface ({{ count }})",
"description": "Template text displayed above a type alias that implements multiple interfaces."
},
"gogoCodeLens.codelens.typeAlias.implementFrom.emptyText": {
"type": "string",
"default": "",
"description": "Text displayed above a type alias that does not implement any interfaces. Leave empty to disable the annotation."
},
"gogoCodeLens.codelens.constant.references.isEnabled": {
"type": "boolean",
"default": true,
"description": "Enable CodeLens annotations above constants to show how many times they are referenced."
},
"gogoCodeLens.codelens.constant.references.singularTemplate": {
"type": "string",
"default": "{{ count }} reference",
"description": "Template text displayed above a constant with exactly one reference."
},
"gogoCodeLens.codelens.constant.references.pluralTemplate": {
"type": "string",
"default": "{{ count }} references",
"description": "Template text displayed above a constant with multiple references."
},
"gogoCodeLens.codelens.constant.references.emptyText": {
"type": "string",
"default": "",
"description": "Text displayed above a constant when no references are found. Leave empty to disable the annotation."
},
"gogoCodeLens.codelens.variable.references.isEnabled": {
"type": "boolean",
"default": true,
"description": "Enable CodeLens annotations above variables to show how many times they are referenced."
},
"gogoCodeLens.codelens.variable.references.singularTemplate": {
"type": "string",
"default": "{{ count }} reference",
"description": "Template text displayed above a variable with exactly one reference."
},
"gogoCodeLens.codelens.variable.references.pluralTemplate": {
"type": "string",
"default": "{{ count }} references",
"description": "Template text displayed above a variable with multiple references."
},
"gogoCodeLens.codelens.variable.references.emptyText": {
"type": "string",
"default": "",
"description": "Text displayed above a variable when no references are found. Leave empty to disable the annotation."
}
}
},
"languages": [
{
"id": "go",
"extensions": [
".go"
]
}
]
},
"activationEvents": [
"onLanguage:go"
],
"devDependencies": {
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
"@types/mocha": "^10.0.7",
"@types/node": "20.x",
"@types/vscode": "^1.93.0",
"@typescript-eslint/eslint-plugin": "^8.3.0",
"@typescript-eslint/parser": "^8.3.0",
"@vscode/test-cli": "^0.0.10",
"@vscode/test-electron": "^2.4.1",
"esbuild": "^0.25.5",
"eslint": "^9.9.1",
"eslint-config-prettier": "^9.1.0",
"npm-run-all": "^4.1.5",
"prettier": "^3.3.3",
"typescript": "^5.5.4"
},
"engines": {
"vscode": "^1.93.0"
},
"icon": "logo.png"
}