goimports v0.5.3 Release Notes

Release Date: 2020-11-12 // almost 2 years ago
  • gopls/v0.5.3

    ๐Ÿ”‹ Features

    โšก๏ธ Automatic updates to go.sum

    โšก๏ธ Previously, go.mod-related quick fixes would not make corresponding changes to your go.sum file. Now, when you add or remove dependencies from your module, your go.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 for go.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!

    @heschik @findleyr @pjweinb