|
| 1 | +## v0.17.0 - 17th Sep, 2020 |
| 2 | + |
| 3 | +Go code debugging and code coverage support is getting better. |
| 4 | + |
| 5 | +The extension will help you stay updated with the new Go releases. |
| 6 | + |
| 7 | +### New Features |
| 8 | + |
| 9 | +- Delve's function call feature is now accessible. To use this feature, |
| 10 | +explicitly specify the `call` command. E.g. `call myAwesomeFunc()`. |
| 11 | +([Issue 100](https://github.com/golang/vscode-go/issues/100)) |
| 12 | +- The extension checks the go official download site and notifies users of |
| 13 | +newly available Go versions. When a newer version is available, |
| 14 | +`Go Update Available` status bar item will appear. |
| 15 | +This feature is available only if `go.useGoProxyToCheckForToolUpdates` |
| 16 | +is set true. ([Issue 483](https://github.com/golang/vscode-go/issues/483)) |
| 17 | +- The new `go.coverMode` setting allows to use different coverage modes |
| 18 | +(`atomic`, `count`, `set (default)`). `go.coverShowCounts`, |
| 19 | +`go.coverageDecorator.{coveredBorderColor, uncoveredBorderColor}` |
| 20 | +were newly added. We are still investigating better ways to |
| 21 | +visualize the `count` coverage data; feedback and contribution is welcome! |
| 22 | +(Issue [256](https://github.com/golang/vscode-go/issues/256), |
| 23 | +[594](https://github.com/golang/vscode-go/issues/594)) |
| 24 | + |
| 25 | +### Enhancement |
| 26 | + |
| 27 | +- Expands `'~'` in the `cwd` attribute of the launch configuration. |
| 28 | +([Issue 116](https://github.com/golang/vscode-go/issues/116)) |
| 29 | +- Debug config's `showGlobalVariables` is disabled by default, and |
| 30 | +this change improves speed. You can still inspect the global |
| 31 | +variables by registering them in the `WATCH` section, or by |
| 32 | +configuring `showGlobalVariables` in `launch.json`. |
| 33 | +([Issue 138](https://github.com/golang/vscode-go/issues/138)) |
| 34 | +- `gofumpt`, `gofumports` is added to recognized formatters list. |
| 35 | +([Issue 587](https://github.com/golang/vscode-go/issues/587)) |
| 36 | +- Automatically restarts the language server if `go.toolsEnvVars` configuration is changed. |
| 37 | +([CL 254370](https://go-review.googlesource.com/c/vscode-go/+/254370)) |
| 38 | +- Reports `go env` failures. |
| 39 | +([Issue 555](https://github.com/golang/vscode-go/issues/555)) |
| 40 | + |
| 41 | +### Fixes |
| 42 | +- Fixed to use absolute file paths in error messages appearing in the DEBUG OUTPUT. |
| 43 | +This allows VS Code to locate the correct files. |
| 44 | +([Issue 456](https://github.com/golang/vscode-go/issues/456)) |
| 45 | +- Fixed handling of absolute file paths in coverage profile, on windows. |
| 46 | +([Issue 553](https://github.com/golang/vscode-go/issues/553)) |
| 47 | +- Changed to pass `GOROOT` when invoking the `gopkgs` tool so `gopkgs` |
| 48 | +continues to work with different go versions without being recompiled. |
| 49 | +([CL 254137]( https://go-review.googlesource.com/c/vscode-go/+/254137)) |
| 50 | +- Fixed to provide explicit directory for running go list and go version. |
| 51 | +([Issue 610](https://github.com/golang/vscode-go/issues/610), |
| 52 | +CL [253600]( https://go-review.googlesource.com/c/vscode-go/+/253600), |
| 53 | +[253602]( https://go-review.googlesource.com/c/vscode-go/+/253602)) |
| 54 | +- Fixed to trigger extension activation when commands for diagnostics, |
| 55 | +such as `Go: Locate Configured Go Tools` are invoked. |
| 56 | +([Issue 457](https://github.com/golang/vscode-go/issues/457)) |
| 57 | +- Fixed to prepend `GOROOT/bin` to integrated terminal's PATH |
| 58 | +environment variable when `go.goroot` is set on OS X. |
| 59 | +([Issue 544](https://github.com/golang/vscode-go/issues/544)) |
| 60 | +- Fixed to correctly apply environment variables setting read from `envFile` |
| 61 | +in the launch configuration. We reworked how the environment variables |
| 62 | +configuration is processed during this cycle. Now the extension processes |
| 63 | +the `envFile` attribute instead of asking the debug adapter process to |
| 64 | +read the specified `envFile`. |
| 65 | +([Issue 452](https://github.com/golang/vscode-go/issues/452)) |
| 66 | +- Disabled `go.installDependenciesWhenBuilding` by default. When this is |
| 67 | +enabled, the extension runs `go` commands with `-i`, which is no longer |
| 68 | +recommended with recent versions of Go. |
| 69 | +([Issue 568](https://github.com/golang/vscode-go/issues/568)) |
| 70 | +- Fixed a bug where we are not sending back 'configuration done' response. |
| 71 | +(([Issue eclipse-theia/theia#8455](https://github.com/eclipse-theia/theia/issues/8455), |
| 72 | +[CL 254959](https://go-review.googlesource.com/c/vscode-go/+/254959)) |
| 73 | + |
| 74 | +### Documentation |
| 75 | + |
| 76 | +- Added new documentation about |
| 77 | +[switching go versions](https://github.com/golang/vscode-go/blob/master/docs/go-version.md), |
| 78 | +and settings for [standard library development](https://github.com/golang/vscode-go/blob/master/docs/stdlib.md). |
| 79 | +- Improved debugging instruction and contribution guide. Enhanced automated settings documentation generation. |
| 80 | + |
| 81 | +### Code Health |
| 82 | + |
| 83 | +- Removed the obsolete string-type coverageDecorator support. |
| 84 | +([Issue 519](https://github.com/golang/vscode-go/issues/519)) |
| 85 | +- When gopls integration tests fail, tests print the observed gopls traces |
| 86 | +to help debugging. |
| 87 | + |
| 88 | +### Experimental Features |
| 89 | + |
| 90 | +- We plan to delegate computation of various `run test` CodeLenses to `gopls`. |
| 91 | +The feature can be enabled with the following setting: |
| 92 | +``` |
| 93 | +"go.useLanguageServer": true, |
| 94 | +"gopls": { |
| 95 | + "codelens": { "test": true } |
| 96 | +} |
| 97 | +"go.overwriteGoplsMiddleware": { |
| 98 | + "codelens": { |
| 99 | + "test": true, |
| 100 | + "bench": true |
| 101 | + } |
| 102 | +} |
| 103 | +``` |
| 104 | + |
| 105 | +### Thanks |
| 106 | + |
| 107 | +Thank you for your contribution, @suzmue, @pjweinbgo, @ekulabuhov, @stamblerre, @tpbg, @FiloSottile, @findleyr, @quoctruong, @polinasok, @hyangah! |
| 108 | + |
1 | 109 | ## v0.16.2 - 2nd Sep, 2020
|
2 | 110 |
|
3 | 111 | ### Fixed
|
|
0 commit comments