This repository has been archived by the owner on Jul 15, 2023. It is now read-only.
Language server support for modules, debugging improvements and more
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