Releases: golang/vscode-go
Release 0.27.0-rc.2
Release 0.27.0-rc.1
Release 0.26.0
V0.26.0 - 17 Jun, 2021
📣 Delve
's native DAP implementation is now available for use. In order to use this new debug adapter (dlv-dap
) when debugging Go programs, add the following settings in your settings.json
:
"go.delveConfig": {
"debugAdapter": "dlv-dap",
},
Please learn more about the new adapter's features and configuration parameters, and share your feedback and report the issues in our issue tracker.
A list of all issues and changes can be found in the v0.26.0 milestone and commit history.
Enhancements
dlv-dap
is ready for use in local debugging.- Added the new
"Go: Test Function At Cursor or Test Previous"
command. (PR 1509) "Go: Add Imports"
command usesgopls
instead ofgopkg
. This requiresgopls@v0.7.0
or newer. (Go Issue 43351)
Fixes
- Fixed
"Go: Lint Workspace"
that failed no editor is active. (Issue 1520) - Fixed
gopls
crash caused by Untitled files. (Issue 1559)
Thanks
Thanks for your contributions, @mislav, @marwan-at-work, @findleyr, @lggomez, @fflewddur, @suzmue, @hyangah!
Release 0.25.1
v0.25.1 - 24 May, 2021
A list of all issues and changes can be found in the v0.25.1 milestone.
Fixes
- Change the default path separator to
/
when applyingsubstitutePath
debug configuration. (Issue 1497) - Warn users when
go.goroot
setting is used. (Issue 1501)
Enhancements
- Update to latest version of
dlv-dap
. Some of newest additions todlv dap
include optimized function detection, exception info, pause, function breakpoints while running, evaluate over hover, set variables. Documentation of current features and limitations can be found in the documentation. - Adjusted feedback survey prompt probability.
Thanks
Thanks for the contribution, @suzmue, @fflewddur!
Release 0.25.0
v0.25.0 - 12 May, 2021
A list of all issues and changes can be found in the
v0.25.0 milestone.
If you have a feature requests for this extension, please file it through the github issue tracker.
Enhancements
- Update to latest version of
dlv-dap
. Documentation of current features and limitations can be found in the documentation - Add debug previous command (Issue 798)
- Add
Go: Initialize go.mod
command to rungo mod init
in the current workspace folder (Issue 1449) - Use
program
in debug configuration to determine mode inauto
(Issue 1422) - Auto update
dlv-dap
if autoUpdates enabled (Issue 1404) - Set
editor.suggest.snippetsPreventQuickSuggestions
to false by default to enable code completion and quick suggestions inside a snippet (Issue 839)
Fixes
- Set the
GOROOT
to the user specifiedGOROOT
ingo.goroot
- Fixed missing file bug in debug adapter (Issue 1447)
- Fixed inconsistent workpsaceFolder value bug in debug configuration (Issue 1448)
- Allow
dlv-dap
to shut down gracefully and clean up debugged process (Issue 120)
Thanks
Thank you for your contribution, @hyangah, @JadenSimon, @stamblerre, @polinasok, @rfindley, and @suzmue!
Release 0.24.2
v0.24.2 - 19 Apr, 2021
A list of all issues and changes can be found in the
v0.24.2 milestone.
Fixes
- Fixed regression in the
lintOnSave
feature. (Issue 1429) - Fixed
dlv-dap
installation to correcly useGOBIN
environment variable. (Issue 1430) - Fixed duplicate error notifications when missing
dlv-dap
. (Issue 1426)
Enhancements
- Updated the minimum required dlv-dap version. The new version includes support for
substitutePath
and shadowed variable annotation.
Release 0.24.1
v0.24.1 - 15 Apr, 2021
Enhancements
- Cleaned up launch configuration snippets for easier debug setup
- To use
dlv-dap
by default for all launch configurations (including codelenses), set thedebugAdapter
field in thego.delveConfig
setting (Issue 1293) - The list of debugging features only available with
dlv-dap
is now available here - Updated extension settings to match gopls v0.6.10
Fixes
- Tightened the test function detection regex for codelenses (Issue 1417)
- Show error message when dlv-dap fails to launch (Issue 1413)
- Corrected install instructions for dlv-dap in popup (Issue 1395)
Code Health
- Updated latest version of dlv-dap and gopls (v0.6.10)
Release 0.24.0
v0.24.0 - 6th Apr, 2021
🧪 We re-enabled the option to use dlv dap
(Delve's native DAP implementation) instead of the old debug
adapter when debugging go code. See the documentation
to learn more about Delve's native DAP implementation, and how to choose dlv dap
.
Full list of issues and changes can be found in the v0.24.0 milestone and the changes since v0.23.3.
Enhancements
- Supports custom format tools when gopls is enabled. (Issue 1238)
- Allows to use
dlv dap
for debugging.
Fixes
- Do not lint with
staticcheck
if it is enabled ingopls
. (CL 301053) - Use
go list
to check availability of newly released gopls. (CL 295418) - Use
go env -json
to query go env variables. (CL 301730) - Include gopls, go versions and OS info to the opt-out survey.
Code Health
- npm audit fix
- Removed the deprecated
go.overwriteGoplsMiddleware
setting. - Added more testing for debug features using dlv-dap.
Thanks
Thanks for the contributions, @hoanggc, @suzmue, @rstambler, @polinasok!
Release 0.23.3
v0.23.3 - 19th Mar, 2021
Enhancements
- Always check the gopls version before activating automated issue reporter regardless of the gopls update settings.
- Updated the hard-coded latest gopls version to v0.6.8 and the gopls settings.
Release 0.23.2
v0.23.2 - 12th Mar, 2021
Fixes
- Updated the gopls version requirement. v0.23.1 requires v0.6.6+. (Issue 1300)