This repository has been archived by the owner on Jul 15, 2023. It is now read-only.
Releases: microsoft/vscode-go
Releases · microsoft/vscode-go
Clear code coverage on file save
- Hyang-Ah Hana Kim (@hyangah)
- Fix the bug introduced in the previous update where the code coverage does not disappear when edits to the file are saved.
Improvements when using gopls and bug fixes
-
- Add note to use WSL 2 for debugging to work in Windows Subsystem for Linux. PR 3167
-
- Fix the
Go: Fill struct
to work correctly when file has multi byte characters. PR 2611
- Fix the
-
- Allow setting breakpoints on a file from the module cache. PR 3079
-
- Improve the error message seen when debugging for "bad access". PR 3196
0.14.2-beta.5
Update default latest version for gopls (#3229) Change-Id: Ic1a6eb955ad9a2e4eab81771dd0c4471670e22fa
Update the vscode language client version being used to make use of upstream improvements
- Ramya Rao (@ramya-rao-a)
- Update the version of
vscode-languageclient
being used to make use of all the upstream fixes. This changes the min version of the VS Code for upcoming updates of this extension to be 1.41. Older versions of VS Code will no longer receive any updates from this extension.
- Update the version of
Another round of debugging improvements!
Debugging improvements
-
- When debugging with the
program
attribute in the debug configuration pointing to a file, debug
just the file and not the entire package. This allows one to debug single files when a folder has multiple files with themain
function. Feature Request 1229 implemented with PR 3016
- When debugging with the
-
- Show debug watch failures as warnings instead of errors to reduce the noise in debug console.
Fixes Bug 3006 with commit 430362e - Use
go run .
instead of passing the current file to thego run
command when the commandRun: Start Without Debugging
command is executed with theprogram
attribute in the debug configuration pointing to a folder. Previously, this would result in errors for cases when the current file uses members from a separate file in the same pacakge. Feature Request 3096 implemented with commit 78518d7e
- Show debug watch failures as warnings instead of errors to reduce the noise in debug console.
Other improvements
-
Carlton Henderson (@CarltonHenderson)
- Fix issue of no linting warnings when using a custom output format with
golangci-lint
. PR 3112
- Fix issue of no linting warnings when using a custom output format with
-
Alexandre Vilain (@alexandrevilain)
- Retain last used cover profile path in the input box when using the command
Go: Apply Cover Profile
. PR 3119
- Retain last used cover profile path in the input box when using the command
-
- Expand suspected relative file paths in test output only in case of error messages. Fixes Bug 1836 with commit 893b29bbf & commit 92d149c8
-
- Include link to
gopls
release notes when prompting to update the tool. - When using
gopls
with parameter hints is disabled , avoid showing the parameter hints after auto-completing a method. Fixes Bug 3075 with PR 3084 - New command
Go: Locate Configured Go Tools
that prints the location of the Go tools that this
extension depends on
- Include link to
-
- Fix the cancelling of stale processes on non Windows machines. PR 3131
-
Rebecca Stambler (@stamblerre)
- Remove support for the language server from Sourcegraph. PR 3127
Bug fixes and update latest version of gopls to be 0.3.1
-
- Ensure users on versions older than 0.3.1 of
gopls
get prompted to update the language server.
- Ensure users on versions older than 0.3.1 of
Code coverage from custom cover profile, support for multiple envFile when debugging and other improvements
-
- The outline feature now shows constants different from variables, and interfaces different from types. PR 2973
-
- A new command
Go: Apply Cover Profile
to apply code coverage decorators from a custom cover profile. Feature Request 1596 implemented with PR 2361
- A new command
-
- The
envFile
in the debug configuration now supports configuring multiple env files. Feature Request 1746 implemented with PR 2395
- The
-
Jakub Warczarek (@programmer04)
- Improve the code snippet for the for loop by replacing
index
withi
. Feature Request 2943 implemented with PR 3010
- Improve the code snippet for the for loop by replacing
Code Coverage when running tests from a single file, improved support for test tags & flags when debugging tests and other bug fixes
New features
-
- New setting
go.coverOnSingleTestFile
to enable applying code coverage resulting from running all tests in current file either using
the code lensrun file tests
or the commandGo: Test File
. Feature Request 2873 implemented with PR 2884
- New setting
-
- Add the option
Don't show again
to the warning that appears on saving changes to files when in the midst of debugging. Feature Request 2880 implemented with PR 2906
- Add the option
-
- Activate the Go extension when the workspace contains Go files rather than wait for a Go file to be opened. Feature Request 2821 implemented with PR 2859
-
- Use tags and options specified in the
go.addTags
andgo.removeTags
settings as placeholders in the input boxes that appear when running theGo: Add Tags To Struct Fields
andGo: Remove Tags From Struct Fields
commands. Feature Request 2929 implemented with PR 2944
- Use tags and options specified in the
Language server updates
- Ramya Rao (@ramya-rao-a)
- The setting
go.languageServerExperimentalFeatures
which allows you to disable experimental features from the
language server has been trimmed the features that can be thus disabled to the below as rest of the features are
deemed to be stable.- format
- documentLink
- diagnostics
- Fix error "Cannot read property 'clear' of undefined" that appears on running the command
Restart language server
if the language server had not started successfully.
- The setting
Others
-
- Ensure the build tags from
go.buildTags
andgo.testTags
are respected by theGo: Debug Test At Cursor
command. Fixes Bug 2953 with commit d6b6668 - Ensure that test arguments passed to
go.testFlags
are treated as arguments and not build flags by delve when debugging tests. Fixes Bug 2115 with commit 9ab7b8bff
- Ensure the build tags from
-
- Update travis.yml with latest VM and improve time taken during cloning step. For more details, see PR 2915
-
- Update package dependencies. PR 2900
Bug fix for when installing tools in module mode
Improvements to tool installation, `gopls` usage and bug fixes
-
Rebecca Stambler (@stamblerre) & Ramya Rao (@ramya-rao-a)
- Use Go proxy to check if user has an older version of
gopls
and prompt to update accordingly.
This can be disabled using the new settinggo.useGoProxyToCheckForToolUpdates
.
- Use Go proxy to check if user has an older version of
-
Rebecca Stambler (@stamblerre)
- Support installing Go tools in module mode when using Go 1.11. Previously, this worked only in Go 1.12 and above
- Clear diagnostics when language server restarts to avoid linger errors from the previous run.
- Enable the
Go to Implementation
feature when using the language server.
-
Kaarthik Rao Bekal Radhakrishna (@karthikraobr)
- Add flag
highlight
togo.languageServerExperimentalFeatures
setting to allow disabling of the highlighting feature from language server. Fixes Bug 2664 with PR 2833 - Distinguish between arrays with
nil
value and zero length. Fixes Bug 2813 with PR 2839 - Sort standard library packages before others in the drop down result of the
Go: Add Import
command. Feature Request 2683 implemented with PR 2803
- Add flag
-
- Fix the placeholder text when extracting method. PR 2799
-
- Updated links to
gopls
wiki and added link to recommended VS Code settings when usinggopls
. PR 2852
- Updated links to
Engineering improvements
-
Kegsay @Kegsay & Zac Bergquist (@zmb3)
- Enable more rules via tslint.
-
Marcus Farkas (@ToothlessGear)
- Re-enable linux tests in travis runs.
-
- Use the new template for bug reports. PR 2840