Skip to content

Releases: golang/vscode-go

Release 0.32.0

08 Mar 22:02
Compare
Choose a tag to compare

v0.32.0 - 8 Mar, 2022

This version includes features to enhance Go 1.18 support. It works best when paired with the latest Go Language Server (gopls v0.8.0+) and Delve (dlv v1.8.0+).

Go 1.18 introduces substantial changes to the language spec, so many tools need rebuilding with Go 1.18 or newer. The extension now suggests updates of tools if it finds they were built with old versions of go which are inadequate for the version used for the project. If you opted in for auto-update, tools will be auto-updated.

In order to use Go 1.18, please follow the instruction to configure your Visual Studio Code to locate the right go binary, and run the Go tools using the "Go: Install/Update Tools" command.

A list of all issues and changes can be found in the v0.32.0 milestone and commit history.

Changes

  • Starting with Go 1.18, the go command provides native support for multi-module workspaces, via go.work files. The new "Open 'go.work'" option in the Go status bar's quickpick menu allows users to access the corresponding go.work file.
    go work short

  • The extension no longer depends on gopkgs. Its use for "Go: Browse Packages" and "Go: Add Import" commands had been replaced with go list or commands in gopls. (Issue 258)

  • The extension uses gopls instead of go-outline if gopls v0.8.0 or newer is used. We plan to complete the replacement work in the next release. (Issue 1020)

  • The new "go.toolsManagement.go" setting allows users to specify the Go command for tools installation/updates separate from the Go command used for the project.

  • The latest gopls requires go 1.13+ for installation, so the extension no longer asks for gopls updates when an older versions of go is used. (Issue 2030) Note gopls compiled with go 1.13 or newer can still process projects that use go 1.12. In case, you want to update gopls while working with an older version of Go, utilize the new "go.toolsManagement.go" setting.

  • Reduced the verbosity of "Go: Locate Configured Go Tools" output.

Code Health

  • Updated to [email protected] (CVE-2021-23566).
  • Deflaked debug tests.
  • Changed to check go.dev/dl instead of golang.org/dl for Go release.
  • Improved documentation for the default formatting behavior and template support.

Thanks

@jamalc @suzmue @pavlelee @dekimsey @hyangah

Release 0.31.1

09 Feb 17:44
Compare
Choose a tag to compare

v0.31.1 - 8 Feb, 2022

A list of all issues and changes can be found in the v0.31.1 milestone and commit history.

Fixes

  • Fixed the profile functionality broken by VSCode 1.63 (Issue 2048)
  • Include fuzz tests in test explorer UI (Issue 2023)

Release 0.31.0

26 Jan 18:09
Compare
Choose a tag to compare

v0.31.0 - 26 Jan, 2022

A list of all issues and changes can be found in the v0.31.0 milestone and commit history.

Fixes

  • src/goStatus: assign id/name to each status bar item (Issue 1571)
  • Change go template file language id to gotmpl (Issue 1957)

Debugging

Test Explorer

  • src/goTest: don't resolve tests in virtual files
  • src/goTest: fix output for subtests (Issue 1837)

Development Process Updates

  • Recommend that contributers use npm ci instead of npm install when developing vscode-go (Issue 2010)
  • test: use @vscode/test-electron instead of vscode-test
  • go.mod: update imports to latest versions
  • package.json: pin direct dependencies (Issue 2010)
  • Enable tests with go1.18beta1 (Issue 1950)

Thanks

Thank you for your contribution, @firelizzard18, @hyangah, @jamalc, @polinasok, @TheNagaPraneeth, @suzmue!

Release 0.30.0

16 Dec 17:00
Compare
Choose a tag to compare

v0.30.0 - 16 Dec, 2021

📣 Remote attach debugging is now available via Delve's native DAP implementation with Delve v1.7.3 or newer. We plan to enable this as the default in early 2022 to enhance remote debugging with the same debugging features that are already in use for local debugging.
We recommend switching your remote attach configurations in launch.json to use "debugAdapter":"dlv-dap" now to verify that this works for you. Please file a new issue if you encounter any problems.

Full list of all issues and changes can be found in the v0.30.0 milestone and commit history.

Changes

  • Debugging

    • dlv-dap is pinned at @2f136727.
    • Remote debugging support using dlv-dap is available.
      Please follow the instruction to enable remote debugging using dlv-dap. (Issue 1861)
    • Launch configuration:
    • Runtime frames are no longer deemphasized. (Issue 1916)
    • Logpoints support is available. (Issue 123)
    • DEBUG CONSOLE accepts the new dlv command that allows users to dynamically inspect/adjust debug configuration. Please run dlv help from DEBUG CONSOLE to see the list of supported options.
    • Bug fixes:
      • Correctly infer mode for attach requests. (Issue 1929)
      • Stop debugging when delve remote connection ends in legacy remote debugging. (CL 366936)
      • Allow users to debug with older versions of dlv-dap. (Issue 1814)
  • Enabled Go template file processing. (Issue 609) By default, files with .tmpl and .gotmpl extension are treated as Go template files.

  • Include Fuzz* functions in Testing UI and adds test codelens. (Issue 1794)

  • gofumports is pinned at v0.1.1. We plan to remove it from the recognized formatter tool list since gofumports is officially deprecated early next year.

  • Disabled separate linting if gopls's 'staticcheck' is enabled. (Issue 1867)

  • Updated the in-editor user survey URL. (CL 360775)

  • Limited Go file search scope for extension activation (Issue 1894)

  • Code Health

    • Enabled esModuleInterop. (CL 349170)
    • Bumped TS target to ES2017. (Issue 1712)
    • Updated json-schema to 0.4.0

Thanks

Thank you for your contribution, @polinasok, @suzmue, @firelizzard18, @hashedhyphen, @fengwei2002, @devuo, @fflewddur, @hyangah

Release 0.29.0

27 Oct 16:03
Compare
Choose a tag to compare

v0.29.0 - 26 Oct, 2021

A list of all issues and changes can be found in the v0.29.0 milestone and commit history.

Changes

  • Prompt users for the 2021 Go Developer survey. go.survey.prompt is a new setting to control survey prompts.
  • Use go install for tools installation when using go1.16+. From go1.18, go get will no longer build/install tools. See the deprecation notice. (Issue 1825) The extension runs go install from the workspace root directory, and the old workaround for Issue 757 is unnecessary.
  • Language Server:
    • Print all GOPATHs when there are multiple GOPATHs. (Issue 1848)
    • Synced settings @ gopls/v0.7.3
  • "Go: Generate Interface Stubs" allows '-' as an acceptable char for interface names. (Issue 1670)
  • Test UX:
    pprof
  • Debug:
    • Added showLog/logOutput/dlvFlags to go.delveConfig setting that change the default values for them. (Issue 1723)
    • Handle directory with '.' in its name correctly and warn users for invalid program (Issue 1826, 1769)

Thanks

Thank you for your contribution, @firelizzard18, @Zamiell, @mislav, @polinasok, @hyangah, @stamblerre, @suzmue, and @yinheli!

Release 0.28.1

24 Sep 20:59
Compare
Choose a tag to compare

v0.28.1 - 24 Sep, 2021

A list of all issues and changes can be found in the v0.28.1 milestone and commit history.

Fixes

  • Skipped launch configuration adjustment to address build errors when debugging using externally launched delve DAP servers. (Issue 1793)
  • Restore the fix for Issue 1729 that was accidentally dropped during merge for release.

Release 0.28.0

20 Sep 17:10
Compare
Choose a tag to compare

v0.28.0 - 16 Sep, 2021

This version requires VS Code 1.59 or newer.

🎉🧪 The extension implements the Testing API of VS Code. You can navigate and run/profile tests using the test explorer UI! Windows support and further work for better profiling and debugging support through the test explorer is underway. Please give it a try and provide feedback.

A list of all issues and changes can be found in the v0.28.0 milestone and commit history.

Changes

  • Require VS Code engine 1.59+.
  • Implement the Testing API (Issue 1579).
    The test provider discovers all Go tests and benchmarks including stretchr test suits (Issue 1641) and sub-tests (Issue 1641). You can adjust behavior with the go.testExplorer.* settings.
  • Offer basic profiling support through the testing API. (Issue 1685)
  • Debugging
    • Allow to connect to a Delve DAP server running on a different host using host and port launch properties. (Issue 1729)
    • Disabled check for active debug session (Issue 1710). This will allow to run multiple debug sessions simultaneously.
    • Disabled the go version check by supplying the --check-go-version=false delve flag (Issue 1716). This is to allow users of older versions of Go to debug using Delve DAP which requires Delve 1.6.1 or newer. If you need to use Delve 1.6.0 or older, please use the legacy debug adapter.
    • Fixed a legacy debug adapter's bug that broke remote debugging when breakpoints were set in irrelevant files. (Issue 1762)
    • Added the new FAQs section.
  • Removed tools version check hack that triggerred unnecessary warnings about go and tools version mismatch issues (Issue 1698).
  • Export an API with which other extensions can query the location of go tools. (Issue 233)
  • Fixed regexps for test function names (CL 344130).
  • Track the language server's restart history and include it in the automated gopls crash report (CL 344130).
  • Code Health

Thanks

Thank you for your contribution, @nlepage, @180909, @polinasok, @stamblerre , and @suzmue!
Special thanks to @firelizzard18 for the Test Explorer work!

Release 0.27.2

01 Sep 20:52
Compare
Choose a tag to compare

v0.27.2 - 1st Sep, 2021

A list of all issues and changes can be found in the v0.27.2 milestone and commit history.

Enhancement

  • Supports replay and core debug launch modes. (PR 1268)
  • gopls now watches changes in go.work files to support Go Proposal 45713.

Fixes

  • Fixed issues around building binaries for debugging when symlinks or case-insensitive file systems are involved. (Issues 1680, 1677, 1713)
  • Clarified the dlvLoadConfig setting is no longer necessary with the new debug adapter (dlv-dap). (CL 344370)
  • Increased the timeout limit from 5sec to 30sec. If dlv-dap still fails to start, please check firewall/security settings do not prevent installation or execution of the dlv-dap (or dlv-dap.exe) binary. (Issue 1693)
  • Go: Install/Update Tools command picks the dlv-dap from the main branch.

Thanks

Thanks for your contributions, Suzy Mueller, Luis Gabriel Gomez, Polina Sokolova, Julie Qiu, and Hana Kim!

Release 0.27.2-rc.1

Release 0.27.1

12 Aug 20:10
Compare
Choose a tag to compare

v0.27.1 - 12 Aug, 2021

✨ See the new features and update in v0.27.0 (Release Note)

A list of all issues and changes in v0.27.1 can be found in the v0.27.1 milestone and commit history.

Enhancement

  • Supports replay and core debug launch modes. (PR 1268)

Fixes

  • Fixed process pickers used in attach mode debugging. (Issue 1679)
  • Fixed the failure of debugging when CGO_CFLAGS is set. (Issue 1678)
  • Fixed the dlv-dap installation issue. (Issue 1682)

Thanks

Thanks for your contributions, Luis Gabriel Gomez, Suzy Mueller, and Hana Kim!