-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpackage.json
347 lines (347 loc) · 11 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
346
347
{
"name": "exp-vscode-go",
"publisher": "ethan-reesor",
"displayName": "Go Companion",
"description": "An unofficial companion to the official Go extension, providing experimental features",
"version": "0.0.5",
"icon": "docs/assets/icon.png",
"license": "MIT",
"homepage": "https://github.com/firelizzard18/exp-vscode-go",
"repository": {
"type": "git",
"url": "https://github.com/firelizzard18/exp-vscode-go"
},
"bugs": {
"url": "https://github.com/golang/vscode-go/issues"
},
"engines": {
"vscode": "^1.75.0"
},
"categories": [
"Testing"
],
"activationEvents": [
"onLanguage:go",
"onView:workbench.view.testing"
],
"private": true,
"main": "./dist/main.js",
"extensionDependencies": [
"golang.go"
],
"scripts": {
"bundle": "esbuild main=src/extension.ts pprof=webview/pprof/App.tsx --bundle --outdir=dist --external:vscode --external:react/jsx-runtime --format=cjs --platform=node --loader:.frag=text --loader:.vert=text",
"watch": "yarn run bundle -- --sourcemap=inline --watch",
"package": "vsce package",
"lint": "eslint src --ext ts",
"tests": "yarn run jest",
"clean": "rimraf dist out",
"check-types": "tsc -p src && tsc -p webview",
"vscode:prepublish": "yarn run check-types && yarn run lint && yarn run bundle"
},
"contributes": {
"customEditors": [
{
"viewType": "goExp.pprof",
"displayName": "Go pprof viewer",
"priority": "default",
"selector": [
{
"filenamePattern": "*.pprof"
}
]
}
],
"configuration": {
"title": "Go Companion",
"properties": {
"exp-vscode-go.testExplorer.enable": {
"order": 0,
"type": "boolean",
"default": true,
"scope": "window",
"markdownDescription": "Enable the Go test explorer"
},
"exp-vscode-go.testExplorer.discovery": {
"order": 1,
"type": "string",
"scope": "resource",
"markdownDescription": "Enable automatic discovery of tests.",
"default": "on",
"enum": [
"on",
"off"
],
"markdownEnumDescriptions": [
"Enable automatic discovery of tests in open workspaces",
"Disable automatic discovery. No tests are shown until a file is open, and only tests within the same package will be shown. Tests within that package will continue to be shown (even if all files are closed) until the editor/extension is restarted."
]
},
"exp-vscode-go.testExplorer.exclude": {
"type": "object",
"default": {},
"markdownDescription": "Exclude directories and/or files from the test explorer. This is merged with `#files.exclude#`. This setting takes precedence if an entry appears in both. If `#files.exclude#` contains `\"examples\": true` and this setting contains `\"examples\": false`, the latter will take precedence - matching entries will be excluded from the file explorer but included in the test explorer. Otherwise if either this setting or `#files.exclude#` contains an entry with a value of `true`, tests and/or packages matching that entry will be excluded from the test explorer.",
"scope": "resource",
"additionalProperties": {
"type": "boolean"
}
},
"exp-vscode-go.testExplorer.showFiles": {
"type": "boolean",
"default": false,
"scope": "resource",
"enum": [
false,
true
],
"enumItemLabels": [
"Tests are contained within packages",
"Tests are contained within files"
],
"markdownEnumDescriptions": [
"- pkg\n - TestFoo",
"- pkg\n - foo_test.go\n - TestFoo"
]
},
"exp-vscode-go.testExplorer.nestPackages": {
"type": "boolean",
"default": false,
"scope": "resource",
"markdownDescription": "Directories that are not packages are always ignored. If `foo` is not a package, foo/bar will not be nested regardless of this setting:\n - example.com\n - foo/bar",
"enum": [
false,
true
],
"enumItemLabels": [
"Packages are siblings",
"Packages are nested"
],
"markdownEnumDescriptions": [
"- example.com\n - foo\n - foo/bar",
"- example.com\n - foo\n - bar"
]
},
"exp-vscode-go.testExplorer.nestSubtests": {
"type": "boolean",
"default": true,
"scope": "resource",
"enum": [
false,
true
],
"enumItemLabels": [
"Subtests are siblings",
"Subtests are nested"
],
"markdownEnumDescriptions": [
"- TestFoo\n - Bar\n - Baz",
"- TestFoo\n- TestFoo/Bar\n- TestFoo/Bar/Baz"
]
},
"exp-vscode-go.testExplorer.codeLens": {
"type": [
"string",
"boolean"
],
"default": false,
"scope": "resource",
"markdownDescription": "Show code lenses for running and debugging tests",
"enum": [
false,
true,
"debug",
"run"
],
"enumItemLabels": [
"Disable code lenses",
"Enable all code lenses",
"Enable \"run test\" code lenses",
"Enable \"debug test\" code lenses"
]
},
"exp-vscode-go.testExplorer.dynamicSubtestLimit": {
"type": "integer",
"default": 50,
"scope": "resource",
"markdownDescription": "Limits the number of (dynamic) subtests that are included. If the number of subtests of a test reaches this limit, additional subtests will be ignored. Set this to 0 to disable the limit, though this may cause the test explorer to perform badly."
},
"exp-vscode-go.testExplorer.runPackageBenchmarks": {
"type": "boolean",
"default": false,
"scope": "resource",
"markdownDescription": "Always run benchmarks. By default (with this set to `false`), benchmarks are excluded from test runs unless benchmarks are explicitly selected or the run contains nothing but benchmarks."
}
}
},
"commands": [
{
"command": "goExp.configureCoverageRunProfile",
"title": "Go Companion: Configure Coverage Run Profile",
"description": "Workaround for https://github.com/microsoft/vscode/issues/237106"
},
{
"command": "goExp.renderDocs",
"title": "Go Companion: Render Documentation",
"description": "Render the documentation for the current selection."
},
{
"command": "goExp.testExplorer.refresh",
"title": "Go Companion: Refresh Test",
"description": "Refresh a test in the test explorer. Only available as a context menu option in the test explorer.",
"category": "Test",
"icon": "$(refresh)"
},
{
"command": "goExp.test.run",
"title": "Go Companion: Run Test",
"category": "Test"
},
{
"command": "goExp.test.debug",
"title": "Go Companion: Debug Test",
"category": "Test"
},
{
"command": "goExp.browser.back",
"title": "Back",
"icon": "$(arrow-left)"
},
{
"command": "goExp.browser.refresh",
"title": "Refresh",
"icon": "$(refresh)"
},
{
"command": "goExp.browser.forward",
"title": "Forward",
"icon": "$(arrow-right)"
},
{
"command": "goExp.pprof.showSource",
"title": "Show Source",
"description": "Show the source code for the selected function"
},
{
"command": "goExp.pprof.ignore",
"title": "Ignore",
"description": "Ignore the selected function"
}
],
"menus": {
"commandPalette": [
{
"command": "goExp.testExplorer.refresh",
"when": "false"
},
{
"command": "goExp.test.run",
"when": "false"
},
{
"command": "goExp.test.debug",
"when": "false"
},
{
"command": "goExp.browser.back",
"when": "false"
},
{
"command": "goExp.browser.refresh",
"when": "false"
},
{
"command": "goExp.browser.forward",
"when": "false"
},
{
"command": "goExp.pprof.showSource",
"when": "false"
},
{
"command": "goExp.pprof.ignore",
"when": "false"
}
],
"editor/context": [
{
"when": "editorTextFocus && resourceLangId == go",
"command": "goExp.renderDocs",
"group": "Go group 1"
}
],
"testing/item/context": [
{
"command": "goExp.testExplorer.refresh",
"when": "controllerId == 'goExp'",
"group": "inline"
}
],
"webview/context": [
{
"command": "goExp.pprof.showSource",
"when": "webviewId == 'goExp.pprof' && hoveredFunction"
},
{
"command": "goExp.pprof.ignore",
"when": "webviewId == 'goExp.pprof' && hoveredFunction"
}
],
"editor/title": [
{
"command": "goExp.browser.back",
"group": "navigation@1",
"when": "activeWebviewPanelId == 'goExp.browser'"
},
{
"command": "goExp.browser.refresh",
"group": "navigation@2",
"when": "activeWebviewPanelId == 'goExp.browser'"
},
{
"command": "goExp.browser.forward",
"group": "navigation@3",
"when": "activeWebviewPanelId == 'goExp.browser'"
}
]
}
},
"devDependencies": {
"@jest/globals": "^29.7.0",
"@types/chroma-js": "^2.4.4",
"@types/css-modules": "^1.0.5",
"@types/deep-equal": "^1.0.4",
"@types/mocha": "^10.0.7",
"@types/node": "~16.x",
"@types/vscode": "~1.75.0",
"@typescript-eslint/eslint-plugin": "^7.14.1",
"@typescript-eslint/parser": "^7.11.0",
"@vscode/test-cli": "^0.0.9",
"@vscode/test-electron": "^2.4.0",
"@vscode/vsce": "^3.1.0",
"copyfiles": "^2.4.1",
"esbuild": "^0.21.5",
"eslint": "^8.57.0",
"expect": "^29.7.0",
"gts": "^5.3.1",
"jest": "^29.7.0",
"moment": "^2.30.1",
"npm-run-all": "^4.1.5",
"rimraf": "^6.0.1",
"semver": "^7.6.3",
"ts-jest": "^29.2.3",
"ts-node": "^10.9.2",
"typescript": "^5.4.5",
"vscode-debugprotocol": "^1.51.0",
"vscode-languageserver-types": "^3.17.5"
},
"dependencies": {
"@streamparser/json": "^0.0.21",
"axios": "^1.7.7",
"chroma-js": "^3.1.1",
"deep-equal": "^2.2.3",
"gl-matrix": "^3.4.3",
"minimatch": "^10.0.1",
"node-html-parser": "^6.1.13",
"tree-kill": "^1.2.2"
}
}