github golang/tools gopls/v0.5.0

latest releases: gopls/v0.17.0-pre.2, gopls/v0.17.0-pre.1, v0.27.0...
4 years ago

A full list of issues closed can be found in the gopls/v0.5.0 milestone.

Memory usage

  • Rewrite of caching model, resulting in significant memory usage improvements (@heschik).

New features

  • Extract to function: Support for extracting code blocks that contain return statements (@joshbaum).
  • Workspace symbols: Support for fzf-style search syntax (@findleyr). The following syntax is supported:
    • ' for exact matching
    • ^ for prefix matching
    • $ for suffix matching

Note: This feature does not yet work in VS Code. See golang/vscode-go#647 and microsoft/vscode#106788.

  • An experimental new code lens to view GC optimization details (@pjweinb). Once the code lens is enabled, you will see a Toggle gc details annotation at the top of your file. Clicking it will show optimization diagnostics produced by the Go compiler, and clicking it once again will hide these diagnostics. Enable the code lens by adding the following to your settings:
     "codelens": {
     	"gc_details": true
     }
  • go mod tidy and go mod vendor code lenses for go.mod files (@dandua98).
  • Support for filling in matching in-scope variables instead of just empty values in fillstruct and fillreturns (@joshbaum).
  • Autocompletion within import statements (@dandua98).
  • Autocompletion within package declarations (@dandua98).

Improvements

  • Improvements to workspace symbols ranking and fuzzy matching (@findleyr, @myitcv).
  • Better completion suggestions in type switch case clauses and for calls to append, function literals, and unnamed types (@muirdm).

Thank you

Thank you to everyone who contributed to this release!

@heschik
@findleyr
@pjweinb
@joshbaum
@mcjcloud
@dandua98
@muirdm
@leitzler
@myitcv
@matloob
@tennashi
@ainar-g
@hasheddan

Don't miss a new tools release

NewReleases is sending notifications on new releases.