Releases: golang/vscode-go
Release 0.16.2
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)
Release 0.16.1
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.gorootandgo.toolsEnvVars(Issue 464, 413).
Release 0.16.0
v0.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 Environmentcommand.
When clicking theGostatus 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/dltools. 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 Selectionitem.
(Issue 253) - When the Go version changes, the extension prepends
$GOROOT/binto thePATHorPathenvironment 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
launchtype requests indebugortestmode. This is still in the early stages and requiresdlvbuilt 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 Profileapplies code coverage for multiple packages (CL 238697). We fixed bugs in processing coverage profiles on Windows.- Suggests the official Go download page when no
gotool is found. - Utilizes the
GOMODCACHEenvironment variable, introduced in Go 1.15. - Prevents multiple debug sessions from launching (Issue 109).
- Streams test output when tests run with the
-voption.
This feature requires 1.14 or newer versions of Go (Issue 316). - Sets
additionalPropertiestofalsefor 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 Toolsincludesgo envresults (Issue 195).- Avoids prompting users to switch the default format tool in modules mode if users enable the language server.
Fixed
- Fixed the
PATHenvironment 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-gomodinstallation bug whenGOPATHincludes multiple directories (Issue 368). - Avoids attempting to kill already terminated processes (Issue 334).
- Fixed
godefto locate standard packages correctly by passing theGOROOTenvironment variable. - Fixed a
golangci-lintintegration bug that prevented displaying the lint results correctly when linters likenolintlintare 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-rpc2andlodashto 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!
Release 0.15.2
Fixed
- Do not fail tools installation when gocode is not already running (Issue 355).
dev.go2go.20200722
A version of vscode-go to work with the new generics prototype. See golang/go#39619 for full context.
This is an updated version of https://github.com/golang/vscode-go/releases/tag/20200616.
Release 0.15.1
Release 0.15.0
New Features
- The new command
Go: Subtest At Cursorruns an individual subtest if the subtest's name is a simple string (cl/235447). - The new setting
go.trace.servercontrols tracing between VS Code and the language server (cl/232458). Unlike tracing usinggoplsflags, this controls client-side tracing, and does not require to restart the server to change the value. This client-side trace is presented in thegoplsoutput channel. The server-side trace has been moved to the newgopls (server)output channel (cl/233598). - There is now a new Go version status bar item. Clicking it currently only pops up the current
GOROOT. We plan to add Go version switch, and other features using this status bar item.
Enhancement
Go: Add Tags To Struct Fieldsprompts transform parameter input if the settinggo.addTags.promptForTagsis true (Issue 2546).Go: Locate Go Toolscommand output includes theGOBINvalue. (cl/235197).- Improved debugging experience
- The debug adapter automatically infers the mapping between remote and local paths for easy remote debugging (cl/234020, Issue 45).
- The debug adapter handles errors that can occur during remote connection setup (cl/237550, Issue 215).
- Failed watch expression evaluation no longer pops up error message windows. The error is visible in the watch window instead (cl/236999, Issue 143).
- Better language server integration
go.gopath,go.goroot,go.toolsGopathare now machine-overridable (cl/236539, Issue 2981).- The extension does not mutate the
GOROOTenvironment variable any more.go.gorootis used to select thegocommand under the specified directory (Issue 146). - A redundant code action provider was removed when using the language server (cl/239284).
Fixed
- Fixed
goplsversion detection and upgrade logic when pre-release versions are involved (cl/235524). - Processes started with
Run > Run Without Debugging (^F5)are now cleaned up when the run sessions end (cl/236879). - When
go.alternateTools.gois set, the path to$(go env GOROOT)/binis passed to underlying tools to ensure they use the samegoversion (cl/239697). - Now the extension avoids invoking buggy
pgrepon mac OS (cl/236538, Issue 90).
Code Health
- More test coverage
- Upgraded dependencies including websocket-extensions from 0.1.3 to 0.1.4 (cl/228617, cl/236839, pr/3261).
Thanks
Thank you for your contribution, Brayden Cloud, Bulent Rahim Kazanci, Eli Bendersky, Hana Kim, Polina Sokolova, Quoc Truong, Rebecca Stambler, Rohan Talip, Ryan Koski, Sean Caffery, Ted Silbernagel, Vincent Jo, and codekid!
dev.go2go.20200616
A version of vscode-go to work with the new generics prototype. See golang/go#39619 for full context.
0.14.4
This is the first version published with golang publisher ID. This version is functionally identical to 0.14.3 except the following modifications.
-
Rebecca Stambler (@stamblerre)
- Update documentation to reflect repository migration.
-
Hyang-Ah Hana Kim (@hyangah)
- Remove old telemetry code.