GoSublime v18.11.28 Release Notes
Release Date: 2018-11-28 // over 5 years ago-
๐ This release introduces the HUD and comes with many improvements to snippets and a tweaked version of the Mariana color schemed named Ariana.
- The HUD is an output panel that's automatically populated with info traditionally found in the status bar and various pop-ups/tool-tips.
Currently, the following info will be displayed there:
The
Issues
status, including the error messages for the current line.The
GocodeCalltips
status, including positional highlighting of params and return statement.
It's bound to the keys
ctrl+.
,ctrl+0
.You can manually bind it to another key. e.g. via
Preferences > Key Bindings
:{ "keys": ["ctrl+0"], "command": "margo_show_hud", },
Several new snippets have been added and old ones improved.
- AppendSnippet:
name = |
suggests: name = append(name, ...)
slice = append(slice[:len(slice):len(slice)], ...)
- DeferSnippet:
defer func() {}()
defer f()
- ReturnSnippet:
return
- MutexSnippet:
mu.|
suggests: mu.Lock(); defer mu.Unlock(); |
mu.Lock(); |; mu.Unlock()
- PackageNameSnippet:
package main; func main() { | }
- DocSnippet: suggest function names, field names, etc. inside the corresponding documentation comment
- AppendSnippet:
๐ Fix the golang.Gocode{} reducer changing View.Pos
๐ฆ The
(Add)UnimportedPackages
feature no longer adds circular imports๐ฑ Show the tasks animation after 500ms instead of 1s to (hopefully) make things feel more responsive
GOROOT and GOPATH are scanned in parallel at startup
๐ฆ All packages in GOROOT and GOPATH are available for the unimported packages feature, not just those in GOROOT and the package cache.
โ Add better named alias
pkg-list
forunimported-packages
and show the directory where the package isAPI BREAKAGE: Most users should not be affected, but there were some API changes/breakages.
- removed CursorScope.Any and CursorScope.All
- make CursorCtx.Pos the int offset instead of token.Pos
CursorNode
andParseCursorNode
were removedCursorCtx.Ctx
is no longer embedded