|
1 | 1 | {
|
2 | 2 | "name": "go",
|
3 | 3 | "displayName": "Go",
|
4 |
| - "version": "0.32.0-dev", |
| 4 | + "version": "0.33.0-dev", |
5 | 5 | "preview": true,
|
6 | 6 | "publisher": "golang",
|
7 | 7 | "description": "Rich Go language support for Visual Studio Code",
|
|
61 | 61 | "vscode-debugprotocol": "1.45.0",
|
62 | 62 | "vscode-languageclient": "7.0.0",
|
63 | 63 | "vscode-languageserver-protocol": "3.16.0",
|
| 64 | + "vscode-uri": "3.0.3", |
64 | 65 | "web-request": "1.0.7"
|
65 | 66 | },
|
66 | 67 | "devDependencies": {
|
|
116 | 117 | "go.goroot",
|
117 | 118 | "go.inferGopath",
|
118 | 119 | "go.toolsGopath",
|
119 |
| - "go.toolsEnvVars" |
| 120 | + "go.toolsEnvVars", |
| 121 | + "go.toolsManagement.go" |
120 | 122 | ]
|
121 | 123 | }
|
122 | 124 | },
|
|
178 | 180 | "scopeName": "go.mod",
|
179 | 181 | "path": "./syntaxes/go.mod.tmGrammar.json"
|
180 | 182 | },
|
| 183 | + { |
| 184 | + "language": "go.work", |
| 185 | + "scopeName": "go.mod", |
| 186 | + "path": "./syntaxes/go.mod.tmGrammar.json" |
| 187 | + }, |
181 | 188 | {
|
182 | 189 | "language": "go.sum",
|
183 | 190 | "scopeName": "go.sum",
|
|
486 | 493 | "command": "go.runMain",
|
487 | 494 | "title": "Go: Run main() func on file",
|
488 | 495 | "description": "Run main() func on file"
|
| 496 | + }, |
| 497 | + { |
| 498 | + "command": "go.explorer.refresh", |
| 499 | + "title": "Go Explorer: Refresh", |
| 500 | + "description": "Refresh the Go explorer. Only available as a menu item in the explorer.", |
| 501 | + "category": "Explorer", |
| 502 | + "icon": "$(refresh)" |
| 503 | + }, |
| 504 | + { |
| 505 | + "command": "go.explorer.open", |
| 506 | + "title": "Go Explorer: Open File", |
| 507 | + "description": "Open a file from the Go explorer. Only available as a menu item in the explorer.", |
| 508 | + "category": "Explorer", |
| 509 | + "icon": "$(go-to-file)" |
489 | 510 | }
|
490 | 511 | ],
|
491 | 512 | "breakpoints": [
|
|
1533 | 1554 | "description": "The logging level the extension logs at, defaults to 'error'",
|
1534 | 1555 | "scope": "machine-overridable"
|
1535 | 1556 | },
|
| 1557 | + "go.toolsManagement.go": { |
| 1558 | + "type": "string", |
| 1559 | + "default": "", |
| 1560 | + "description": "The path to the `go` binary used to install the Go tools. If it's empty, the same `go` binary chosen for the project will be used for tool installation.", |
| 1561 | + "scope": "machine-overridable" |
| 1562 | + }, |
1536 | 1563 | "go.toolsManagement.checkForUpdates": {
|
1537 | 1564 | "type": "string",
|
1538 | 1565 | "default": "proxy",
|
|
1780 | 1807 | "generateTestForPackage": {
|
1781 | 1808 | "type": "boolean",
|
1782 | 1809 | "default": true,
|
1783 |
| - "description": "If true, adds command to generate unit tests for currnt package to the editor context menu" |
| 1810 | + "description": "If true, adds command to generate unit tests for current package to the editor context menu" |
1784 | 1811 | },
|
1785 | 1812 | "addImport": {
|
1786 | 1813 | "type": "boolean",
|
|
2336 | 2363 | "markdownDescription": "check that struct field tags conform to reflect.StructTag.Get\n\nAlso report certain struct tags (json, xml) used with unexported fields.",
|
2337 | 2364 | "default": true
|
2338 | 2365 | },
|
| 2366 | + "stubmethods": { |
| 2367 | + "type": "boolean", |
| 2368 | + "markdownDescription": "stub methods analyzer\n\nThis analyzer generates method stubs for concrete types\nin order to implement a target interface", |
| 2369 | + "default": true |
| 2370 | + }, |
2339 | 2371 | "testinggoroutine": {
|
2340 | 2372 | "type": "boolean",
|
2341 | 2373 | "markdownDescription": "report calls to (*testing.T).Fatal from goroutines started by a test.\n\nFunctions that abruptly terminate a test, such as the Fatal, Fatalf, FailNow, and\nSkip{,f,Now} methods of *testing.T, must be called from the test goroutine itself.\nThis checker detects calls to these functions that occur within a goroutine\nstarted by the test. For example:\n\nfunc TestFoo(t *testing.T) {\n go func() {\n t.Fatal(\"oops\") // error: (*T).Fatal called from non-test goroutine\n }()\n}\n",
|
|
2384 | 2416 | "useany": {
|
2385 | 2417 | "type": "boolean",
|
2386 | 2418 | "markdownDescription": "check for constraints that could be simplified to \"any\"",
|
2387 |
| - "default": true |
| 2419 | + "default": false |
2388 | 2420 | }
|
2389 | 2421 | }
|
2390 | 2422 | },
|
|
2548 | 2580 | {
|
2549 | 2581 | "command": "go.test.deleteProfile",
|
2550 | 2582 | "when": "false"
|
| 2583 | + }, |
| 2584 | + { |
| 2585 | + "command": "go.explorer.refresh", |
| 2586 | + "when": "false" |
| 2587 | + }, |
| 2588 | + { |
| 2589 | + "command": "go.explorer.open", |
| 2590 | + "when": "false" |
2551 | 2591 | }
|
2552 | 2592 | ],
|
2553 | 2593 | "editor/context": [
|
|
2649 | 2689 | "group": "profile"
|
2650 | 2690 | }
|
2651 | 2691 | ],
|
| 2692 | + "view/title": [ |
| 2693 | + { |
| 2694 | + "command": "go.explorer.refresh", |
| 2695 | + "when": "view == go.explorer", |
| 2696 | + "group": "navigation" |
| 2697 | + } |
| 2698 | + ], |
2652 | 2699 | "view/item/context": [
|
2653 | 2700 | {
|
2654 | 2701 | "command": "go.test.deleteProfile",
|
2655 | 2702 | "when": "viewItem == go:test:file"
|
| 2703 | + }, |
| 2704 | + { |
| 2705 | + "command": "go.explorer.open", |
| 2706 | + "when": "view == go.explorer && viewItem == go:explorer:envitem:file", |
| 2707 | + "group": "inline" |
2656 | 2708 | }
|
2657 | 2709 | ]
|
2658 | 2710 | },
|
2659 | 2711 | "views": {
|
| 2712 | + "explorer": [ |
| 2713 | + { |
| 2714 | + "id": "go.explorer", |
| 2715 | + "name": "go", |
| 2716 | + "icon": "media/go-logo-white.svg" |
| 2717 | + } |
| 2718 | + ], |
2660 | 2719 | "test": [
|
2661 | 2720 | {
|
2662 | 2721 | "id": "go.test.profile",
|
|
0 commit comments