Changelog History
Page 1
-
v0.5.5 Changes
December 04, 2020gopls/v0.5.5
๐ This is a patch release to fix two bugs in
gopls/v0.5.4
.๐ Fixes
๐ฆ Excessive reloading of packages outside of GOPATH or a module
๐ See golang/go#42813.
๐ File corruption with CRLF line endings and
//
-style comments๐ golang/go#42646 was supposed to have been fixed in
gopls/v0.5.4
, but it was not. golang/go#42923 was reported and fixed.
๐ A full list of all issues fixed can be found in the gopls/v0.5.5 milestone. To report a new problem, please file a new issue at https://golang.org/issues/new.
-
v0.5.5-pre.1
December 04, 2020 -
v0.5.4 Changes
November 30, 2020๐ Features
Opening a project that contains a module in a subdirectory
Previously,
gopls
required that you open your editor exactly at or below the module root (the directory containing thego.mod
). Now, you can open a directory that contains exactly one module in a subdirectory, andgopls
will work as expected. For details on multi-module workspaces, see below.๐ Improved error message reports
๐ Previously, critical error messages were reported as message pop-up that would re-trigger as you type. Many users would find this annoying. We have changed the approach to show error messages as progress reports, which should be less intrusive and appear more like status bars.
๐ Improved memory usage for workspaces with multiple folders
๐ฆ We are now using a coarser cache key for package type information. If you use the gopls daemon, this may reduce your total memory usage.
Experimental
๐ Multi-module workspace support
๐ The proposal described in golang/go#32394 is still in development and off by default. See our progress by tracking the multi-module workspace milestone and project.
๐ Enable multi-module workspace support by adding the following to your settings:
"gopls": {"experimentalWorkspaceModule": true,}
With this setting, you will be able to open a directory that contains multiple modules or a directory that contains nested modules.
Give this a try if you're interested in this new feature, but please note that it is still very experimental. Please file issues if you encounter bugs.
๐ Fixes
๐ File corruption with CRLF line endings and
/**/
-style comments๐ Previously, when you organized the imports in a file with CRLF line endings and multi-line comments, the formatter might output incorrect content for the file, rendering it invalid Go code. This issue has popped up a number of times, but we believe it has finally been fixed for good. If you are using Windows with CRLF line ending, please report any regressions. For full details, see golang/go#42646.
๐ A full list of all issues fixed can be found in the gopls/v0.5.4 milestone. To report a new problem, please file a new issue at https://golang.org/issues/new.
Thank you to our contributors!
@findleyr @heschik @pjweinb @leitzler @yangwenmai @matloob @golopot @muirdm
-
v0.5.4-pre.1
November 23, 2020 -
v0.5.3 Changes
November 12, 2020gopls/v0.5.3
๐ Features
โก๏ธ Automatic updates to
go.sum
โก๏ธ Previously,
go.mod
-related quick fixes would not make corresponding changes to yourgo.sum
file. Now, when you add or remove dependencies from your module, yourgo.sum
will be updated accordingly.โ Removed support for
go mod tidy
on save๐ We have removed the support for running
go mod tidy
on save forgo.mod
files. It proved to be too slow and expensive to be worth it.Experimental
๐ Multi-module workspace support
๐ The proposal described in golang/go#32394 is still in development and off by default. See our progress by tracking the multi-module workspace milestone and project.
๐ Enable multi-module workspace support by adding the following to your settings:
"gopls": {"experimentalWorkspaceModule": true,}
With this setting, you will be able to open a directory that contains multiple modules. Most features will work across modules, but some, such as
goimports
, will not work as expected.Give this a try if you're interested in this new feature, but please note that it is still very experimental.
๐ Fixes
๐ A list of all issues fixed can be found in the gopls/v0.5.3 milestone.
Thank you to our contributors!
-
v0.5.3-pre.2
November 10, 2020 -
v0.5.3-pre.1
November 09, 2020 -
v0.5.2 Changes
October 28, 2020gopls/v0.5.2
๐ Features
๐ No new features have been added in this release.
Experimental
๐ We have added support for a new
allExperiments
setting. By enabling this flag, you will enable all experimental features that we intend to roll out slowly. You can still disable individual settings (full list of settings). In-progress features, such as multi-module workspaces (below), will remain disabled until they are ready for users.๐ Improved CPU utilization:
experimentalDiagnosticsDelay
๐ฆ
experimentalDiagnosticsDelay
controls the amount of time that gopls waits after the most recent file modification before computing deep diagnostics. Simple diagnostics (parsing and type-checking) are always run immediately on recently modified packages.๐ Enable it by setting it to a duration string, for example
"200ms"
. WithallExperiments
, this is set to"200ms"
.๐ Improved memory usage for workspaces with multiple folders:
experimentalPackageCacheKey
๐ฆ
experimentalPackageCacheKey
controls whether to use a coarser cache key for package type information. If you use the gopls daemon, this may reduce your total memory usage.Enable it by setting it to
true
. WithallExperiments
, this is set totrue
.๐ Multi-module workspace support
๐ The proposal described in golang/go#32394 is still in development and off by default. See our progress by tracking the multi-module workspace milestone and project.
๐ Enable multi-module workspace support by adding the following to your settings:
"gopls": {"experimentalWorkspaceModule": true,}
With this setting, you will be able to open a directory that contains multiple modules. Most features will work across modules, but some, such as
goimports
, will not work as expected.Give this a try if you're interested in this new feature, but please note that it is still very experimental.
๐ Support for semantic tokens
๐ This is a new, unreleased LSP feature that provides additional syntax highlighting. In advance of this new LSP version, we have added preliminary support for this feature. Enable it by setting:
"gopls": {"semanticTokens": true,}
It will not be enabled with
allExperiments
.๐ Fixes
๐ A list of all issues fixed can be found in the gopls/v0.5.2 milestone.
For editor clients
๐ All command names have been given
gopls.
prefixes, to avoid conflicting with commands registered by other language servers.
This should not have affected any clients.Thank you to our contributors!
@heschik @findleyr @dandua98 @pjweinb @leitzler @kortschak @bcmills @hyangah @jadekler
-
v0.5.2-pre.2
October 28, 2020 -
v0.5.2-pre.1
October 21, 2020