mirror of
https://github.com/golang/go
synced 2024-09-30 16:28:32 -06:00
c42aa19e51
Tweak a few things so that unnamed, non-basic types are offered as completions in certain cases: var _ []int = make(<>) // now properly suggests "[]int" I also fixed type related keywords to not be offered if there is an expected type: var _ *int = new(<>) // don't offer "func", etc. There are still some cases that don't work properly. For example: var _ [][]int = make([]<>) // doesn't offer "[]int" This would be harder to fix given the way things currently work. Fixes golang/go#40275, golang/go#40274. Change-Id: I2577d5863d4757845ad3ff7dbb125106b649a6b6 Reviewed-on: https://go-review.googlesource.com/c/tools/+/246360 Run-TryBot: Muir Manders <muir@mnd.rs> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Rebecca Stambler <rstambler@golang.org> |
||
---|---|---|
.. | ||
analysisinternal | ||
apidiff | ||
event | ||
fakenet | ||
fastwalk | ||
gocommand | ||
gopathwalk | ||
imports | ||
jsonrpc2 | ||
lsp | ||
memoize | ||
packagesinternal | ||
proxydir | ||
span | ||
stack | ||
testenv | ||
tool | ||
typesinternal | ||
xcontext |