Changelog History
Page 6
-
v0.17.0 Changes
September 18, 2020๐ Go code debugging and code coverage support is getting better.
๐ The extension will help you stay updated with the new Go releases.
๐ New Features
- ๐ Delve's call feature is now accessible. To use this feature, explicitly specify the
call
command. E.g.call myAwesomeFunc()
. It is an experimental feature in Delve. Please see the current limitations. (Issue 100) - The extension checks the go official download site and notifies users of newly available Go versions. When a newer version is available,
โก๏ธGo Update Available
status bar item will appear. This feature is available only ifgo.useGoProxyToCheckForToolUpdates
is set true. (Issue 483) - 0๏ธโฃ The new
go.coverMode
setting allows to use different coverage modes (atomic
,count
,set (default)
).go.coverShowCounts
,
๐go.coverageDecorator.{coveredBorderColor, uncoveredBorderColor}
were newly added. We are still investigating better ways to visualize thecount
coverage data; feedback and contribution is welcome! (Issue 256,
594)
โจ Enhancement
- ๐ง Expands
'~'
in thecwd
attribute of the launch configuration. (Issue 116) - 0๏ธโฃ Debug config's
showGlobalVariables
is disabled by default, and this change improves speed. You can still inspect the global
๐ง variables by registering them in theWATCH
section, or by configuringshowGlobalVariables
inlaunch.json
. (Issue 138) gofumpt
,gofumports
is added to recognized formatters list. (Issue 587)- ๐ง Automatically restarts the language server if
go.toolsEnvVars
configuration is changed. (CL 254370) - Reports
go env
failures. (Issue 555)
๐ Fixes
- ๐ Fixed to use absolute file paths in error messages appearing in the DEBUG OUTPUT. This allows VS Code to locate the correct files.
(Issue 456) - ๐ Fixed handling of absolute file paths in coverage profile, on windows. (Issue 553)
- ๐ Changed to pass
GOROOT
when invoking thegopkgs
tool sogopkgs
continues to work with different go versions without being recompiled. (CL 254137) - ๐ Fixed to provide explicit directory for running go list and go version. (Issue 610,
CL 253600, 253602) - ๐ Fixed to trigger extension activation when commands for diagnostics, such as
Go: Locate Configured Go Tools
are invoked. (Issue 457) - ๐ Fixed to prepend
GOROOT/bin
to integrated terminal's PATH environment variable whengo.goroot
is set on OS X. (Issue 544) - ๐ Fixed to correctly apply environment variables setting read from
envFile
in the launch configuration. We reworked how the environment variables configuration is processed during this cycle. Now the extension processes theenvFile
attribute instead of asking the debug adapter process to read the specifiedenvFile
. (Issue 452) - 0๏ธโฃ Disabled
go.installDependenciesWhenBuilding
by default. When this is enabled, the extension runsgo
commands with-i
, which is no longer recommended with recent versions of Go. (Issue 568) - ๐ Fixed a bug where we are not sending back 'configuration done' response. (Issue eclipse-theia/theia#8455, CL 254959)
๐ Documentation
- โ Added new documentation about switching go versions, and settings for standard library development.
- ๐ Improved debugging instruction and contribution guide. Enhanced automated settings documentation generation.
Code Health
- โ Removed the obsolete string-type coverageDecorator support. (Issue 519)
- โ When gopls integration tests fail, tests print the observed gopls traces to help debugging.
Experimental Features
โ We plan to delegate computation of various
run test
CodeLenses togopls
. This experimental feature can be enabled with the following setting:"go.useLanguageServer": true, "gopls": { "codelens": { "test": true } }
Thanks
Thank you for your contribution, @suzmue, @pjweinbgo, @ekulabuhov, @stamblerre, @tpbg, @FiloSottile, @findleyr, @quoctruong, @polinasok, @hyangah!
- ๐ Delve's call feature is now accessible. To use this feature, explicitly specify the
-
v0.17.0-rc.3 Changes
September 17, 2020- ๐ How to install pre-release: https://github.com/golang/vscode-go/blob/master/docs/nightly.md#testing-pre-releases
- ๐ Release note: https://github.com/golang/vscode-go/blob/v0.17.0-rc.3/CHANGELOG.md#v0170---17th-sep-2020
- Milestone: https://github.com/golang/vscode-go/issues?q=is%3Aissue+milestone%3Av0.17.0+is%3Aclosed
-
v0.17.0-rc.2 Changes
September 16, 2020- ๐ How to install pre-release: https://github.com/golang/vscode-go/blob/master/docs/nightly.md#testing-pre-releases
- ๐ Release note draft: https://go-review.googlesource.com/c/vscode-go/+/255417/3/CHANGELOG.md
- Milestone: https://github.com/golang/vscode-go/issues?q=is%3Aissue+milestone%3Av0.17.0+is%3Aclosed
-
v0.17.0-rc.1 Changes
September 14, 2020๐ How to install pre-release:
๐ https://github.com/golang/vscode-go/blob/master/docs/nightly.md#testing-pre-releasesMilestone
https://github.com/golang/vscode-go/issues?q=is%3Aissue+milestone%3Av0.17.0+is%3Aclosed -
v0.16.2 Changes
September 02, 2020๐ Fixed
- ๐ Fixed the compile error message parsing bug that prevented correct file name expansion in test output. (Issue 522).
- ๐ Fixed the regression that caused to run tests in the local directory mode and
๐ฆ result in more verbose output than the package list mode. (Issue 528). - ๐ Fixed
"go.alternateTools"
settings to accept any tool names without
โ settings.json diagnostics warning. (Issue 526)
-
v0.16.2-rc.1
September 01, 2020 -
v0.16.1 Changes
August 05, 2020๐ Fixed
- ๐ Fixed the bug that made test output verbose by default (Issue 471).
- ๐ Fixed the extension host crash bug due to a process-wide uncaught exception handler accidentally installed along with the inlined debug adapter. This crash bug also caused connection drops when used with the VS Code Remote extension (Issue 467, 469).
- ๐ Readded the predefined variable resolution support for
go.goroot
andgo.toolsEnvVars
(Issue 464, 413).
-
v0.16.1-rc.1 Changes
August 05, 2020๐ How to install pre-release:
๐ https://github.com/golang/vscode-go/blob/master/docs/nightly.md#testing-pre-releases๐ CHANGELOG draft:
๐ https://github.com/golang/vscode-go/blob/release/CHANGELOG.md#v0161---5th-aug-2020 -
v0.16.0 Changes
August 03, 2020v0.16.0 - 3rd Aug, 2020
This version requires VS Code 1.46+.
โก๏ธ Older versions of VS Code will not receive updates any more.
๐ New Features
- ๐ Users can select/install a different version of Go with
Go: Choose Go Environment
command.
0๏ธโฃ When clicking theGo
status bar that displays the currently active Go version, users will be prompted with the list of Go versions installed locally or available for download. This feature was built based on thegolang.org/dl
tools. The selected Go version applies to the workspace, takes precedence over the system default or the"go.goroot"
and"go.alternateTools"
settings, and persists across sessions. You can clear the choice by selecting theClear Selection
item.
(Issue 253) - ๐ When the Go version changes, the extension prepends
$GOROOT/bin
to thePATH
orPath
environment variable which then applies the change to the integrated terminal windows. - ๐ This version includes an experimental version of the new Debug Adapter that uses Delve's native DAP implementation. It currently supports
launch
type requests indebug
ortest
mode. This is still in the early stages and requiresdlv
built from its unreleased, master branch. Subscribe to golang/vscode-go#23 for updates.
โจ Enhancement
- Bundles the extension using webpack, which reduced the extension size (4.7MB -> 1MB) and the extension loading overhead (3.4K files -> 3 files) (Issue 53).
- ๐
Go: Apply Cover Profile
applies code coverage for multiple packages (CL 238697). We fixed bugs in processing coverage profiles on Windows. - Suggests the official Go download page when no
go
tool is found. - Utilizes the
GOMODCACHE
environment variable, introduced in Go 1.15. - Prevents multiple debug sessions from launching (Issue 109).
- โ
Streams test output when tests run with the
-v
option.
This feature requires 1.14 or newer versions of Go (Issue 316). - ๐ Sets
additionalProperties
tofalse
for the settings that don't expect more properties. This allows VS Code to handle these settings better in its new settings GUI (Issue 284). - ๐ง
Go: Locate Configured Go Tools
includesgo env
results (Issue 195). - 0๏ธโฃ Avoids prompting users to switch the default format tool in modules mode if users enable the language server.
๐ Fixed
- ๐ Fixed the
PATH
environment variable adjustment when users use a wrapper as an alternate tool forgo
(CL 239697). - ๐ Fixed a bug in test output processing, which prevented VS code from linking test log messages with locations in the source file.
- ๐ Fixed a
gocode-gomod
installation bug whenGOPATH
includes multiple directories (Issue 368). - Avoids attempting to kill already terminated processes (Issue 334).
- ๐ Fixed
godef
to locate standard packages correctly by passing theGOROOT
environment variable. - ๐ Fixed a
golangci-lint
integration bug that prevented displaying the lint results correctly when linters likenolintlint
are enabled (Issue 411). - ๐ Fixed lost test function name arguments when running
Go: Test Previous
(Issue 269).
Code Health
- โ Many enhancements to improve test reliability and test coverage were made during this dev cycle.
- ๐ TryBot is enabled, and the test results are posted to Gerrit CL. Currently, only the internal team members can see the details of the test results, but we will continue working to make them public.
- ๐ Windows tests are now fixed and enabled in GitHub Action-based CI.
- ๐จ Refactored code shared by the extension and the debug adapters to prevent accidental debug adapter breakages.
- โก๏ธ Updated
json-rpc2
andlodash
to address vulnerability reports fromnpm audit
.
Thanks
Thank you for your contribution, fujimoto kyosuke, OneOfOne, Aditya Thakral, Oleg Butuzov, Rebecca Stambler, Peter Weinberger, Brayden Cloud, Eli Bendersky, Robert Findley, Hana Kim!
- ๐ Users can select/install a different version of Go with
-
v0.16.0-rc.1 Changes
July 30, 2020๐ How to install pre-release:
๐ https://github.com/golang/vscode-go/blob/master/docs/nightly.md#testing-pre-releases๐ CHANGELOG draft:
https://github.com/golang/vscode-go/blob/master/CHANGELOG.md#v0160---xxx-aug-2020