Changelog History
Page 2
-
v0.11.6 Changes
September 21, 2019โก๏ธ The prompt to update your
gopls
that was introduced in the previous update, relied on making calls to https://proxy.golang.org.
๐ In this patch release, we replace such calls with a check against a known hard-coded value for the latest version ofgopls
. Details on the next steps here are captured in the issue 2776 -
v0.11.5 Changes
September 19, 2019Debugging improvements
-
- Fix the bug where setting breakpoint fails if the remote program is started through dlv with --continue switch. Bug 2690
- Fix the bug where disconnecting (after attaching to) the remote program terminates it Bug 2592
- Fix the bug where setting breakpoint will fail if a breakpoint already exists (if dlv is started through multi client and another client sets the breakpoint).
Tooling improvements
-
gopls
can now be used when using Go from the tip- A new status bar item "Go Modules" will show up when the extension has determined that modules are being used. On clicking, this will take you to the wiki page for Go modules support in VS Code
-
- Allow the use of
go.alternateTools
setting to provide an alternative forgopls
. PR 2660
- Allow the use of
-
-
v0.11.4 Changes
July 10, 2019James George (@jamesgeorge007)
- Update README to contain Table of Contents. PR 2634
-
v0.11.3 Changes
July 07, 2019- Revert marking
go.goroot
setting to be of scopemachine
in order to support it to be configured at worksapce level. More in this is discussed at 2576.
- Support custom arguments when running tests by passing them after
-args
ingo.testFlags
setting. Fixes Bug 2457James George (@jamesgeorge007)
- Update README to contain Table of Contents. PR 2634
- Revert marking
-
v0.11.2 Changes
July 06, 2019 -
v0.11.1 Changes
July 03, 2019๐ Bug Fixes
-
- Update the extension to use new Go logo! PR 2582
-
- Add link to all the code snippets provided by the extension in the README. PR 2603
-
- Support the
output
attribute in the debug configuration whenmode
is set totest
. Fixes Bug 2445 with commit 373f0743 - Fix bug that got introduced in the previous update where nested variables show empty values when debugging. Fixes Bug 2601 with commit e89118e42
- Warnings regarding the inability to find the go binary in the PATH environment variable now includes the value of the PATH being checked.
- The prompt to choose
goimports
instead of the defaultgoreturns
as the formatting tool when using modules without the language server, now has the option to not be shown again for cases when you don't want to usegoimports
. Fixes Bug 2578 with commit 658db8d4 - Avoid unwanted prompt to re-compile tools when current goroot is different from the previous only in terms of casing. Fixes Bug 2606 with commit b0a2d2d
- Preserve text highlighting as part of code coverage in multiple editor groups. Fixes Bug 2608 with commit 0de7e94e
- Update code coverage decorators in the visible editor immediately after corresponding setting is changed rather than wait for focusing on the editor. commit 86df86fd6
- Mark
go.goroot
,go.gopath
andgo.toolsGopath
settings to be of scopemachine
as per upstream request 2576 from VS Code to better support remote scenarios.
- Support the
-
-
v0.11.0 Changes
June 18, 2019@BetaXOi & Joel Hendrix (@jhendrixMSFT)
- When debugging, support attaching to a local Go process and detaching gracefully without killing the process. This uses the attach command delve. Feature Request 1599 implemented with PR 2125.
Please note the feature of attaching to a local process using process id only works when the process is started by running the compiled code i.e the executable and not by using the command
go run
. This is a limitation from delve.-
- A new command
Go: Restart Language Server
to restart the language server which previously was possible only by reloading the VS Code window. Feature Request 2500 implemented with PR 2530
- A new command
Rebecca Stambler (@stamblerre)
- Enable diagnostics feature from
gopls
by default and add the feature to provide to clickable Godoc links for import statements. PR 2518
- Enable diagnostics feature from
-
- Add a new option
incrementalSync
togo.languageServerExperimentalFeatures
setting. If true, the language server will accept incremental document synchronization. PR 2493
- Add a new option
-
- Resolve
${workspaceRoot}
and${workspaceFolder}
for the-vetTtool
flag provided ingo.vetFlags
setting. Feature Request 2527 implemented with PR 2528
- Resolve
-
- Resolve
${workspaceRoot}
and${workspaceFolder}
for the values provided to thego.alternateTools
setting. Feature Request 2543 implemented with PR 2544
- Resolve
-
- Ensure Go binary is in the PATH when running Go tools. Fixes Bug 2514 with commit d93a0aec
- Use
gotype-live
to provide diagnostics as you type only when the user is not usinggopls
and is not in module mode. This is becausegopls
supports this feature out of the box and the tool doesnt support modules. Fixes Bug 1950 with commit d1bf95c5
-
v0.10.2 Changes
April 30, 2019๐ This patch release has fixes for the below bugs
-
v0.10.1 Changes
April 25, 2019๐ This patch release has fixes for the below bugs
- Bug 2459:
gopls
crashes when-trace
is set in thego.languageServerFlags
setting - Bug 2461: Extension uses high CPU due to being stuck in an infinite loop when
go.useLanguageServer
is set totrue
, but no language server can be found - Bug 2458: Reference to GOPATH when dependent tools are missing misleads users to think that they need GOPATH for the extension to work
- Bug 2459:
-
v0.10.0 Changes
April 23, 2019๐ Go Modules support improvements
-
- Add grammar for
go.mod
andgo.sum
files, thus providing syntax highlighting for them. Feature Request 1886 implemented with PR 2344
- Add grammar for
-
- Support
gopls
, the language server from Google as the one from Sourcegraph is no longer under active development. Also becausegopls
supports Go modules. PR 2383. Please read our updated README on language servers for the latest on what we recommend. - Use
goimports
for formatting when using Go modules without the language server becausegoreturns
(the default formatting tool) doesn't work with modules yet. Fixes Bug 2309 - Fix build on save, install and debug features when
GO111MODULE
is set toon
inside the GOPATH. Fixes Bug 2238 with commit 15f571e4
- Support
๐ New features
- Aswin M Prabhu (@aswinmprabhu)
- Refactor commands to extract functions and variables using godoctor. Feature Request 588 implemented with PR 2139
Go: Extract to function
Go: Extract to variable
- Refactor commands to extract functions and variables using godoctor. Feature Request 588 implemented with PR 2139
Debugging improvements
-
- You can now control whether global variables are shown or not in the variable pane while debugging by tweaking the
showGlobalVariables
property in thego.delveConfig
setting. Feature Request 2323 implemented with PR 2351
- You can now control whether global variables are shown or not in the variable pane while debugging by tweaking the
Others
Filippo Valsorda (@FiloSottile) & Vlad Barosan (@vladbarosan)
- Avoid prompts to re-compile Go tools when the
go.toolsGopath
is different between workspaces. PR 1589
- Avoid prompts to re-compile Go tools when the
-
- Avoid moving to the next parameter in the Signature Help feature, when provided parameter value is a string with commas. Fixes Bug 1682 with PR 1738
- Improvements to the README for the debug adapter that provides information on how to debug the debug adapter. PR 2341
- Add module definitions for test fixtures. PR 2306
-
- Fix single quotes uses for JSON examples in setting descriptions. PR 2036
-
- Improve the snippet for anonymous go function. PR 2354
Jackson Kearl (@JacksonKearl) & Vlad Barosan (@vladbarosan)
- Use the latest apis for the Outline feature. Feature Request 1772 implemented with PR 1795
-
- Clean up the temporary directory created by the Go extension when VS Code window is closed. Fixes Bug 2188 with commit 4a241f80
- Show the start of on save features in the output panel. Fixes Bug 1869 with commit 058eccf17
- Ignore
GOBIN
when user has setgo.toolsGopath
setting. Fixes Bug 2339 with commit 9f99c30
-