Sourced from golang.org/x/tools's releases.
gopls/v0.7.0
Features
Postfix completions
Postfix completions are a new style of completions that can save you time by inserting more complex pieces of commonly-written code. All of the results end with
!. This feature was added experimentally ingopls/v0.6.10and is now enabled by default.See this example:
New commands: List known packages and add import
These commands can be used to manually list available packages to import and then add an import to your file. They are currently not used by any known clients, but they will be made available through the Command Palette in VS Code in the next VS Code Go release.
Improvements
Memory usage
Improved trimming of the ASTs of dependency packages results in reduced memory usage, especially for projects with many dependencies. This may result in some hard-to-diagnose bugs that we're not yet aware of, so please report any surprising behavior via https://golang.org/issues/new.
Fixes
A full list of all issues fixed can be found in the gopls/v0.7.0 milestone. To report a new problem, please file a new issue at https://golang.org/issues/new.
Thank you to our contributors!
@muirdm@marwan-at-work@dominikh@leitzler@OneOfOne@zyctree@ShoshinNikita@KarthikNayak@suzmue@bcmillsgopls/v0.6.11
This release contains mainly bug fixes. A full list of all issues fixed can be found in the gopls/v0.6.11 milestone. To report a new problem, please file a new issue at https://golang.org/issues/new.
Thank you to our contributors!
@ShoshinNikita@sakateka@muirdmWill Langford@empire@justplesh@suzmuegopls/v0.6.10
Features
t.FatalsnippetIf you trigger completion in a test function, on the line after a call to a function that returns an error, you will be offered a completion snippet for:
if err != nil { t.Fatal(err) } </tr></table>
... (truncated)
031fc75 gopls/internal/regtest/bench: don't run the iwl test with -shortf477bf4 gopls/internal/lsp/source/completion: avoid Snapshot.CachedPackagesb72edd1 gopls/internal/lsp/filecache: GOPLS_CACHE -> GOPLSCACHEd566927 gopls/internal/lsp/regtest: add @suggestedfix markerfdb0da6 gopls/internal/regtest/bench: add a benchmark for diagnosing a change6eb432f gopls/internal/regtest/bench: add benchmarks in a wider variety of reposc91d0b8 gopls/internal/lsp/source: guard against concurrent writes in xrefsc0742f5 go.mod: update golang.org/x dependencies21d2256 gopls/internal/lsp/cache: make type-checking incrementalae05609 internal/lsp/cache: add an LRU parse cache