1
0
mirror of https://github.com/golang/go synced 2024-11-18 18:14:43 -07:00
go/internal/lsp/testdata
Muir Manders ea181f53ac internal/lsp/source: filter candidates when type name required
Now when we expect a type name at the cursor, we omit non-type name
completion candidates. For example:

inch := 1
var foo in<> // don't offer "inch"

I also added expected type name detection for value specs:

// Expect a type name at <>
var foo <>

Fixes golang/go#32806.

Change-Id: I32477cb286d2050bac5ccc767f8a608124fa5acd
Reviewed-on: https://go-review.googlesource.com/c/tools/+/216400
Run-TryBot: Muir Manders <muir@mnd.rs>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
2020-02-12 15:05:39 +00:00
..
indirect internal/lsp: add quickfixes for missing dependencies in go.mod 2020-02-07 00:16:14 +00:00
lsp internal/lsp/source: filter candidates when type name required 2020-02-12 15:05:39 +00:00
missingdep internal/lsp: add quickfixes for missing dependencies in go.mod 2020-02-07 00:16:14 +00:00
missingtwodep internal/lsp: add quickfixes for missing dependencies in go.mod 2020-02-07 00:16:14 +00:00
unused internal/lsp: add quickfixes for missing dependencies in go.mod 2020-02-07 00:16:14 +00:00