- Sam Herrmann (@samherrmann), Ramya Rao (@ramya-rao-a)
- A new setting
go.toolsGopathfor providing an alternate location to install all the Go tools that the extension depends on, if you don't want them cluttering your GOPATH. PR 351 and PR 737.- This is useful when you work on different GOPATHs.
- Remember to run
Go: Install Toolscommand to install the tools to the new location.
- A new setting
- Ramya Rao (@ramya-rao-a)
- All the "Install tool" options (the pop ups you see) and the
Go: Install Toolscommand now supportgometalinterif it is your chosen linting tool. PR 735.- Since
gometalinterinternally installs linters and expects them to be in the user's GOPATH,gometalinterwill get installed to your GOPATH and not the alternate location specified ingo.toolsGopath
- Since
- All the "Install tool" options (the pop ups you see) and the
- Matt Aimonetti (@mattetti)
- While building, we now use the
-iflag (for non main packages) which installs dependent packages, which in turn get used in subsequent builds resulting in faster builds in bigger workspaces. PR 718
- While building, we now use the
- Ramya Rao (@ramya-rao-a)
- Build errors with no line numbers (for eg. Import cycle) are now displayed in the output window and will be mapped to the first line of the file. PR 740
- Ramya Rao (@ramya-rao-a)
-
A new setting
go.testFlagsthat can be used to run tests. If null,go.buildFlagswill be used. PR 482 -
Customize flags for each of the test command by using different keybindings. PR 482. In the below example,
ctrl+shift+tis bound to run the tests in current file with-shortflag. The commands here can bego.test.package,go.test.fileorgo.test.cursor.{ "key": "ctrl+shift+t", "command": "go.test.file", "args": { "flags": ["-short"] }, "when": "editorTextFocus" } -
New toggle command
Go: Toggle Test Filethat lets you toggle between your Go file and the corresponding test file. Previous commandsGo: Open Test FileandGo: Open Implementation For Test Filehave been deprecated in favor of this new command. PR 739. You can add a keyboard binding to this as below:{ "key": "ctrl+shift+t", "command": "go.toggle.test.file", "when": "editorTextFocus && editorLangId == 'go'" } -
If current file is not a test file, show error message while running test commands, instead of displaying success message. Fixes #303
-
- Marcel Voigt (@nochso)
- Show error message in output window when running test coverage fails. PR 721
- Andreas Kuhn (@ankon)
- Honor the
cwdlaunch configuration argument. PR 714
- Honor the
- Ramya Rao (@ramya-rao-a)
- GOPATH set in the
envproperty inlaunch.jsonwill also be used to finddlvtool. PR 725.
- GOPATH set in the
- Rob Lourens (@roblourens)
- New property
traceinlaunch.jsonto provide option to have verbose logging while debugging using vscode-debug-logger. PR 753. This will help in diagnosing issues with debugging in the Go extension.
- New property
- Yuwei Ba (@ibigbug)
- Use
http.proxysetting while installing Go tools. PR 639
- Use
- chronos (@bylevel)
- Ramya Rao (@ramya-rao-a)
- Implement Step Out in debgging Commit 6d0f440
- Improve performance by reducing number of calls to
godoc,godef,gogetdoc. PR 711 - Default value for
go.autocompleteUnimportedPackagesis now false to reduce noise in the suggestion list. Members of unimported packages will still show up in suggestion list after typing dot after package name.
- Jimmy Kuu (@jimmykuu)
- Remove blank space in the end of code snippet on function suggest. PR 628
- Ahmed W. (@OneofOne)
- Remove the multiple -d flags in formatting. PR 644
- Paweł Kowalak (@viru)
- Snippet for Benchmark Test function. PR 648
- Alberto García Hierro (@fiam)
- Fix Go To Definition, Hover and Signature Help when using Go from tip. PR 655
- Cedric Lamoriniere (@cedriclam)
- Fix Generate Test for Current function when the function is a method on a type. PR 657
- Potter Dai (@PotterDai)
- Fix Find all References when using multiple GOPATH where one is the substring of the other. PR 658
- Ramya Rao (@ramya-rao-a)
- lixiaohui (@leaxoy), Arnaud Barisain-Monrose (@abarisain), Zac Bergquist (@zmb3) and Ramya Rao (@ramya-rao-a)
- Added option to use
gogetdocfor Goto Definition , Hover and Signature Help features. PR 622 To use this, add a setting"go.docstool": "gogetdoc"to your settings and reload/restart VS Code. This fixes the below bugs- #440 Hover info does not show doc string for structs
- #442 Goto Definition, Hover, Signature Help do not work for
netpackage - #496 Goto Definition, Hover, Signature Help do not work for Dot imported functions
- #515 Go to definition and type info doesn't work with mux.Vars or anything else from gorilla/mux
- #567 Signature Help and Quick Info do not show function comments for unexported functions
- Added option to use
- Ramya Rao (@ramya-rao-a)
- Ramya Rao (@ramya-rao-a)
- Revert the deprecation of
go.formatOnSavedue to popular demand.
- Revert the deprecation of
- Mark LaPerriere (@marklap)
- Snippets for method declaration, main and init functions PR 602
- Rob Lourens @roblourens
- launch.json intellisense to include all "mode" values. Fixes #574
- Ramya Rao (@ramya-rao-a)
- Support for
editor.formatOnSaveand deprecatinggo.formatOnSavePR 578 - Remove deprecated language configuration settings PR 587
- Feature Request 432: Commands to switch to test file and back. PR 590. You can add your own shortcuts for these commands.
Go: Open Test FileGo: Open Implementation for Test File
- Navigate to test file after generating unit tests using the
Go: Generate unit tests ...commands. PR 610 - Prompt to set GOPATH if not set already PR 591
- Improvements to auto complete
- #389 Fix issue with autocomplete popping up at the end of a string PR 586
- #598 Importable packages in auto complete should appear after rest of the suggestions. PR 603
- #598 Importing vendored packages from other Go projects should not be allowed. PR 605
- #598 When there is an identifier with same name as an available package, do not show the package in the compeltion list PR 608
- Other Bug Fixes
- Support for
- Rob Lourens @roblourens
- Fix the regression in debugging PR #576
- Ramya Rao(@ramya-rao-a)
- Preserve focus in editor when running tests PR #577
- Ramya Rao(@ramya-rao-a)
- Rob Lourens @roblourens
- Use random port number while debugging PR #553
- Ludwig Valda Vasquez (@bredov)
- New configuration
go.formatFlagsto pass flags to the formatting tool PR #461
- New configuration
- Dan Mace (@@ironcladlou
- Cedric Lamoriniere (@cedriclam)
- New commands to generate unit test skeletons using
goteststool. Needs Go 1.6 or higher. PR #489Go: Generate unit tests for current fileGo: Generate unit tests for current functionGo: Generate unit tests for current package
- New commands to generate unit test skeletons using
- Ramya Rao (@ramya-rao-a)
- New configuration
go.testEnVarsto pass environment variables to Go tests PR #498 - Changes made to GOROOT and GOPATH via settings now take effect immediately without requiring to reload/restart VS Code PR #458
- Go extension ready to use after installing tools without requiring to reload/restart VS Code PR #457
- Enable Undo after Rename. PR #477. Needs
difftool which is not available on Windows by default. You can install it from DiffUtils for Windows - Autocomplete for functions from unimported packages and for unimported packages themselves. To enable this set
go.autocompleteUnimportedPackagesto true. PR #497 - Do not allow to import already imported packages via the
Go: Add Importcommand. PR #508 - Suggest
gometalinterto Go 1.5 users sincegolintdropped support for Go 1.5 PR #509 - Fix broken installation for
goimports. PR #470 and PR #509
- New configuration
- Arnaud Barisain-Monrose (@abarisain)
- Fix broken installation for
goreturnsin Windows. PR #463
- Fix broken installation for
- Matt Aimonetti (@mattetti)
- New command to install/update all Go tools that the Go extension needs. The command is
Go: Install ToolsPR #428
- New command to install/update all Go tools that the Go extension needs. The command is
- Ryan Veazey (@ryanz)
- Auto-generated launch.json to have
showLog:true. PR #412
- Auto-generated launch.json to have
- Arnaud Barisain-Monrose (@abarisain)
- Updates to Extra Info feature: Documentation from
godocnow appears on hover PR #424
- Updates to Extra Info feature: Documentation from
- Sajjad Hashemian (@sijad)
- Option to choose
gometalinteras tool for linting PR #294
- Option to choose
- Bartosz Wróblewski (@bawr)
- New configuration
showLogto toggle the debugging output fromdelvePR #352
- New configuration
- benclarkwood (@benclarkwood)
- Better logging while installing tools PR #375