1
0
mirror of https://github.com/golang/go synced 2024-11-18 14:14:46 -07:00
go/internal/lsp/testdata
Muir Manders 6fe4996ff4 internal/lsp/source: fix multi return value func completion
Fix a minor completion ranking issue:

    foo := func(int, int) {}
    foo(123, <>)

Previously we were preferring "foo()" at "<>" even though it can't be
used. We mistakenly thought we were completing the first param because
the *ast.CallExpr appears to only have a single param.

Change-Id: Iedbbb1870a4b9eb5d5be4ed266b8bb3e313b496b
Reviewed-on: https://go-review.googlesource.com/c/tools/+/246697
Run-TryBot: Muir Manders <muir@mnd.rs>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
2020-08-06 02:28:35 +00:00
..
lsp internal/lsp/source: fix multi return value func completion 2020-08-06 02:28:35 +00:00
missingdep internal/lsp: fix go.mod.golden test file to have sorted mod names 2020-07-30 22:19:56 +00:00
missingtwodep internal/lsp: support extract function 2020-07-20 18:55:41 +00:00
unused internal/lsp: support extract function 2020-07-20 18:55:41 +00:00
upgradedep internal/lsp: support extract function 2020-07-20 18:55:41 +00:00