vscode-go v0.18.0 Release Notes

Release Date: 2020-10-23 // over 3 years ago
  • v0.18.0 - 23rd Oct, 2020

    ๐Ÿš€ Unified Go status UI โšก, many debugger feature improvements, and LSP 3.16 features! A list of all issues fixed with this release can be found in the v0.18.0 milestone.

    ๐Ÿ†• New Features

    • ๐Ÿ“š The new Go status bar provides a menu to manage the go version, open the gopls trace, open the go.mod file, and more. The old Go Modules status bar was removed in favor of this new unified status bar. See VS Code Go UI documentation to learn more about this.
    • ๐Ÿ†• New Go: Toggle gc details command toggles the display of compiler optimization choice for the open Go source file (CL 256658).
    • Upgraded LSP to 3.16. Users of recent gopls can access new features such as Call hierarchy and Semantic tokens.

    โœจ Enhancement

    • Debugging:
      • Correctly presents the reason when the debugged program stops due to panic and fatal error (Issue 648).
      • Be explicit about conditional breakpoint support (Issue 781).
      • Debug Adapter logs all the environment variables passed to dlv when verbose logging is enabled.
    • Language Server Client: sends gopls config as LSP initialization options for correct workspace symbols computation (CL 259138).
    • Snippets: adds a placeholder for the for statement snippet (Issue 734).
    • Excludes vendor directories from go.inferGopath disable mechanism (Issue 301).
    • ๐Ÿ†• New go.logging.level setting allows extra logging to help debugging extension issues (CL 256557).
    • For Nightly extension users, Go: Show Survey Config and Go: Reset Survey Config commands are available.

    ๐Ÿ›  Fixes

    • ๐Ÿ›  Fixed the bug that caused the debug adapter to leave bogus null items in the map type variable presentation (Issue 199).
    • ๐Ÿ›  Fixed several debug adapter bugs that caused remote debug to hang (Issue 740, 766, 761, 764).
    • ๐Ÿ”ง Restored the correct handling of language server configuration change when users opt for enabling language server and installing gopls. (CL 258997).
    • ๐Ÿ›  Fixed a diagnostics error visualization issue when multiple files with errors are open (Issue 743).
    • ๐Ÿ”„ Changed the dependency tool installation to use the go command chosen from the current GOROOT/bin. This helps avoid using a different version of go command for asdf or direnv users (Issue 757).

    ๐Ÿ“š Documentation

    • ๐Ÿ”ง Documented the current limitation of symlink support in debugging (CL 257204), improved the instruction for CLI application debugging (CL 259677), and fixed syntax errors in example task configuration snippets (CL 259077).

    Code Health

    • โž• Added an initial set of tests for debug adapters (Issue 137). We will keep working to improve our test coverage.

    Thanks

    Thank you for your contributions, @suzmue, @vologab, @amitlevy21, @danielhelfand, @egonk, @quoctruong, @polinasok, @pjweinbgo, @stamblerre, @hyangah!