1
0
mirror of https://github.com/golang/go synced 2024-11-18 15:04:44 -07:00
go/internal/lsp/testdata
Muir Manders ea829e2eb2 internal/lsp/source: handle completing into variadic params
For example:

func foo(string, ...int)

func a() string
func b() (string, int)
func c() (string, int, int)

// Prefer "a()" and "b()" and "c()". Previously we didn't prefer any of
// them.
foo(<>)

Fixes golang/go#36540.

Change-Id: I144b3f63942b7699d3034efcc9ad8535a7fa3165
Reviewed-on: https://go-review.googlesource.com/c/tools/+/215538
Run-TryBot: Muir Manders <muir@mnd.rs>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
2020-02-14 18:12:26 +00:00
..
indirect internal/lsp: add codelens for go.mod dependency upgrades 2020-02-14 14:15:08 +00:00
lsp internal/lsp/source: handle completing into variadic params 2020-02-14 18:12:26 +00:00
missingdep internal/lsp: add codelens for go.mod dependency upgrades 2020-02-14 14:15:08 +00:00
missingtwodep internal/lsp: add codelens for go.mod dependency upgrades 2020-02-14 14:15:08 +00:00
unused internal/lsp: add codelens for go.mod dependency upgrades 2020-02-14 14:15:08 +00:00
upgradedep internal/lsp: add codelens for go.mod dependency upgrades 2020-02-14 14:15:08 +00:00