This repository has been archived by the owner on Jul 15, 2023. It is now read-only.
Build/vet/lint on demand, perf improvements, run benchmarks and more
-
New commands
- Frederik Ring (@m90)
Go: Run on Go Playground
to run the current file (only if all its dependencies are from the std library) in the Go Playground using goplay. PR 1270. Feature Request #1211- Use the setting
go.playground
to control whether to run and/or share a link to the playground and/or open the playground in the browser.
- Use the setting
- Robin Bartholdson @buyology
Go: Benchmark Function At Cursor
and Codelens for running benchmarks in test files. PR 1303. Feature Request #972
- Andrew Nee (@ndrewnee)
Go: Lint Current Package
andGo: Lint Workpsace
to lint using the tool specified in thego.lintTool
setting and the flags specified in thego.lintFlags
setting. PR 1258. Feature Request #1041
- Ramya Rao (@ramya-rao-a)
Go: Vet Current Package
andGo: Vet Workpsace
to vet using the flags specified in thego.vetFlags
setting. Feature Request #1041Go: Build Current Package
andGo: Build Workpsace
to build using the flags specified in thego.buildFlags
setting and build tags specified in the settinggo.buildTags
. Feature Request #287Go: Install Current Package
to install the current package using the flags specified in thego.buildFlags
setting and build tags specified in the settinggo.buildTags
. Feature Request #287
- Frederik Ring (@m90)
-
Completion Improvements
- wangkechun (@wangkechun)
- Completions for standard packages are now shown before custom packages when providing completions for unimported packages. PR 1309
- Ramya Rao (@ramya-rao-a)
gocode
can now use gb specific rules when providing completions. Set the new settinggo.gocodePackageLookupMode
togb
to use this feature. Feature Request #547
- wangkechun (@wangkechun)
-
Performance improvements
- Ramya Rao (@ramya-rao-a)
- The
autobuild
feature ofgocode
which is known to slow completions is now disabled by default. Fixes Bug 1323- Since we use the
-i
flag when building, we do not rely onautobuild
feature ofgocode
to ensure fresh results from dependencies. - If you have disabled the
buildOnSave
setting, then use the newGo: Build Current Package
command once in a while to ensure the dependencies are up to date or enable thego.gocodeAutoBuild
setting.
- Since we use the
- In Go 1.9 and higher, running the vet feature in the absence of vet flags will be faster due to the use of
go vet ./...
instead ofgo tool vet -flags
. Fixes Bug 1215 - Performance issues caused by a large number of lingering processes for vet/lint/hover features are now solved.
- Measures are now in place to kill older processes before starting new ones for vet/lint feature. Fixes Bug 1265
- For other features like hover/outline/definition etc. the cancellation token provided by the core is used to kill processes if the corresponding request from the core is cancelled. Fixes Bug 667
- The
- Ramya Rao (@ramya-rao-a)
-
Others
- Phil Kates (@philk)
- David Marby (@DMarby)
- Fix delve connection issues when verbose build flag is set. PR 1354
- Jan Koehnlein @JanKoehnlein
- Ramya Rao (@ramya-rao-a)
- Apply/Clear coverage in active editors of all editor groups rather than just the first one. Fixes Bug 1343
- Fix the issue of codelens for references showing "0 references" when
guru
fails to provide references. Fixes Bug 1336 - Support multiple buildtags in the
go.buildTags
setting. Fixes [Bug 1355]#1355).