|
15 | 15 | "Snippets", |
16 | 16 | "Linters", |
17 | 17 | "Debuggers", |
18 | | - "Formatters" |
| 18 | + "Formatters", |
| 19 | + "Testing" |
19 | 20 | ], |
20 | 21 | "galleryBanner": { |
21 | 22 | "color": "#F2F2F2", |
|
70 | 71 | "@types/node": "^13.11.1", |
71 | 72 | "@types/semver": "^7.1.0", |
72 | 73 | "@types/sinon": "^9.0.0", |
73 | | - "@types/vscode": "^1.52.0", |
| 74 | + "@types/vscode": "^1.59.0", |
74 | 75 | "adm-zip": "^0.4.14", |
75 | 76 | "fs-extra": "^9.0.0", |
76 | 77 | "get-port": "^5.1.1", |
|
232 | 233 | "title": "Go: Test Package", |
233 | 234 | "description": "Runs all unit tests in the package of the current file." |
234 | 235 | }, |
| 236 | + { |
| 237 | + "command": "go.test.refresh", |
| 238 | + "title": "Go Test: Refresh", |
| 239 | + "description": "Refresh a test in the test explorer. Only available as a context menu option in the test explorer.", |
| 240 | + "category": "Test", |
| 241 | + "icon": "$(refresh)" |
| 242 | + }, |
235 | 243 | { |
236 | 244 | "command": "go.benchmark.package", |
237 | 245 | "title": "Go: Benchmark Package", |
|
1282 | 1290 | "description": "Flags to pass to `go test`. If null, then buildFlags will be used. This is not propagated to the language server.", |
1283 | 1291 | "scope": "resource" |
1284 | 1292 | }, |
| 1293 | + "go.testExplorerPackages": { |
| 1294 | + "type": "string", |
| 1295 | + "enum": [ |
| 1296 | + "flat", |
| 1297 | + "nested" |
| 1298 | + ], |
| 1299 | + "default": "flat", |
| 1300 | + "description": "Control whether packages in the test explorer are presented flat or nested.", |
| 1301 | + "scope": "resource" |
| 1302 | + }, |
| 1303 | + "go.testExplorerRunBenchmarks": { |
| 1304 | + "type": "boolean", |
| 1305 | + "default": false, |
| 1306 | + "description": "Include benchmarks when running all tests in a group.", |
| 1307 | + "scope": "resource" |
| 1308 | + }, |
| 1309 | + "go.testExplorerConcatenateMessages": { |
| 1310 | + "type": "boolean", |
| 1311 | + "default": true, |
| 1312 | + "description": "If true, test log messages associated with a given location will be shown as a single message.", |
| 1313 | + "scope": "resource" |
| 1314 | + }, |
1285 | 1315 | "go.generateTestsFlags": { |
1286 | 1316 | "type": "array", |
1287 | 1317 | "items": { |
|
2356 | 2386 | } |
2357 | 2387 | }, |
2358 | 2388 | "menus": { |
| 2389 | + "commandPalette": [ |
| 2390 | + { |
| 2391 | + "command": "go.test.refresh", |
| 2392 | + "when": "false" |
| 2393 | + } |
| 2394 | + ], |
2359 | 2395 | "editor/context": [ |
2360 | 2396 | { |
2361 | 2397 | "when": "editorTextFocus && config.go.editorContextMenuCommands.toggleTestFile && resourceLangId == go", |
|
2437 | 2473 | "command": "go.show.commands", |
2438 | 2474 | "group": "Go group 2" |
2439 | 2475 | } |
| 2476 | + ], |
| 2477 | + "testing/item/context": [ |
| 2478 | + { |
| 2479 | + "command": "go.test.refresh", |
| 2480 | + "when": "testId =~ /_test\\.go/", |
| 2481 | + "group": "inline" |
| 2482 | + } |
2440 | 2483 | ] |
2441 | 2484 | } |
2442 | 2485 | } |
|
0 commit comments