Releases: golang/vscode-go
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)
Release 0.23.1
v0.23.1 - 11th Mar, 2021
🎉 We use staticcheck
as the default lint tool. We also changed to use goimports
for formatting when not using gopls
.
This version requires VS Code 1.52 or newer.
A list of all issues and changes can be found in the v0.23.1 milestone and the changes since v0.22.1
Enhancements
- Changed the default lint/format tools. (Issue 189, 192)
- Enhanced
dlv-dap
start logic (Issue 1270) and improved output/error message forwarding. (CL 296930)
Fixes
- Fixed the spurious popup message about the use of
goreturns
. (CL 300430) - Fixed orphaned progress notification after restarting
gopls
. (Issue 1153) - Fixed cryptic error messages that appear when
gopls
commands fail. (Issue 1237) - Fixed incomplete folding range info issue caused by parse errors. Complete fix requires
gopls
v0.6.7+ (Issue 1224)
Code Health
- Updated LSP to 3.16.0 (stable), and DAP to 1.44.0.
Release 0.23.0
v0.23.0 - 4th Mar, 2021
A list of all issues and changes can be found in the v0.23.0 milestone and the changes since v0.22.1
Enhancements
- Improved debugging workflow of attaching to local process. (Issue 183)
By settingprocessId
to the command name of the process,${command:pickProcess}
, or${command:pickGoProcess}
a quick pick menu will show a list of processes to choose from. - Enabled access to Delve DAP again. Simplified the Delve DAP launch workflow and removed the intermediate Node.JS adapter.
If"debugAdapter": "dlv-dap"
is specified in launch.json configurations, the extension will use Delve DAP for the debug session. When using Delve DAP, install the dev version ofdlv
built from master (cd; GO111MODULE=on go get github.com/go-delve/delve/cmd/dlv@master
) to pick up the latest bug fixes and feature improvement. (Issue 23, 822,844) - Added an opt-in "Always Update" setting for
gopls
auto-update. (Issue 1095) Go: Reset Global State
andGo: Reset Workspace State
commands are available for easier extension state reset.- Enabled survey to collect feedback from users who disabled
gopls
. - Added a new setting (
"go.disableConcurrentTests"
) that prevents concurrentgo test
invocation. (Issue 1089)
Fixes
- Issue 1113: error message when debugee terminates fast.
- Issue 179: disable stackTrace error pop-ups during debugging.
- CL 290289: check incorrect gopls flag usage before automated gopls crash report.
- Issue 948: show lint tool's name as the lint diagnostic collection name.
- Issue 1252: search
C:\Program Files\Go\bin
,C:\Program Files (x86)\Go\bin\go.exe
, the new default Go installation path in Windows.
Code Health
- Migrated to use
gts
to enforce consistent coding style. (Issue 1227) - Preview mode features are available in both Nightly and the dev version.
- Enabled integration test in Go module mode.
- Enabled Delve DAP integration test.
- Removed the
latest
branch.
Thanks
Thanks for your contributions, @Charliekenney23, @eneuschild, @suzmue, @stamblerre, @pjweinbgo, @polinasok!
Release 0.22.1
v0.22.1 - 8th Feb, 2021
Enhancements
- Added error details to automated error reports. (CL 287952)
- Used clickable links in
"go.languageServerExperimentalFeatures"
setting deprecation error messages. (CL 288133)
Fixes
- Fixed a race during language client restarts. (CL 288372, CL 288352)
- Disabled the language server when using workspace folders over ssh. (Issue 1171)
- Added
dlv
to the"go.alternateTools"
example value list. (CL 289231)
Code Health
- Bumped
ini
to 1.3.8 to address a vulnerability report fromnpm audit
.
Thanks
Thank you for your contribution, @stamblerre, @hyangah, @patrasap0908!