1
0
mirror of https://github.com/golang/go synced 2024-11-18 22:55:23 -07:00
go/internal/lsp/testdata
Rebecca Stambler ed30b9180d internal/lsp: don't show list errors unless necessary
The go/packages workaround to hide errors for overlay packages doesn't
seem to work well. It's easier to just hide list errors in gopls
diagnostics unless the package genuinely failed to type-check. Check if
the package has missing dependencies as an approximation of if it is
well-typed.

This required some additional special casing for the import cycle error
detection, which now causes them to have duplicate diagnostics. It's a
rare enough case that this doesn't concern me, but we should clean this
up at some point.

Fixes golang/go#36754.

Change-Id: If12c92fb9a0e0b69b711ae9a509ecb1b2a32255c
Reviewed-on: https://go-review.googlesource.com/c/tools/+/216310
Run-TryBot: Rebecca Stambler <rstambler@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Heschi Kreinick <heschi@google.com>
2020-01-27 19:59:09 +00:00
..
address internal/lsp/source: support dereferencing for completion 2020-01-22 21:43:17 +00:00
analyzer
anon
append
arraytype
assign internal/lsp/source: improve completion in value spec 2019-12-23 21:16:02 +00:00
bad internal/lsp/source: fix typeIsValid() inf recursion 2020-01-21 04:27:40 +00:00
badstmt
bar
basiclit
baz
builtins internal/lsp/source: improve completion for "range" and "<-" 2020-01-16 06:24:25 +00:00
casesensitive
cast
cgo internal/lsp/tests: skip cgo tests when not supported 2019-11-25 21:54:41 +00:00
cgoimport internal/lsp: improve link in documentation on hover 2019-12-12 22:39:21 +00:00
channel internal/lsp: support taking address for completion candidates 2019-12-23 23:54:10 +00:00
circular internal/lsp: don't show list errors unless necessary 2020-01-27 19:59:09 +00:00
comments
complit internal/lsp: add comment completions for exported vars 2019-12-10 22:11:41 +00:00
constant
deep internal/lsp/source: support dereferencing for completion 2020-01-22 21:43:17 +00:00
errors
fieldlist
folding
foo
format
func_rank internal/lsp/source: improve completion in type assertions 2020-01-16 01:06:23 +00:00
funcsig
funcvalue
fuzzymatch internal/lsp: reorganize and refactor code 2019-11-21 02:33:28 +00:00
generated
godef internal/lsp: show comments for grouped variable declarations 2019-12-18 20:39:36 +00:00
good
highlights internal/lsp: add highlighting for import statement 2020-01-17 17:07:20 +00:00
implementation internal/lsp: refactor find-implementation handling 2019-12-23 22:59:19 +00:00
importedcomplit
imports
index
interfacerank
keywords internal/lsp: suggest "fallthrough" only inside switches 2019-12-10 22:10:49 +00:00
labels
links internal/lsp: create links for golang/go#1234-style strings 2019-12-27 05:39:25 +00:00
maps internal/lsp/source: improve completion in type assertions 2020-01-16 01:06:23 +00:00
nested_complit
nodisk
noparse
noparse_format
rank internal/lsp: fix variadic interface completion ranking 2019-11-18 05:14:29 +00:00
references internal/lsp: refactor find-references and rename 2020-01-16 06:24:15 +00:00
rename internal/lsp: permit renaming symbols declared in other packages 2020-01-27 18:56:10 +00:00
selector internal/lsp: sort by label after score 2019-12-30 21:11:21 +00:00
signature internal/lsp: fix active parameter for incomplete parentheses 2020-01-27 19:24:44 +00:00
snippets internal/lsp/source: fix some invalid literal candidates 2020-01-08 20:36:44 +00:00
suggestedfix
symbols
testy
typeassert internal/lsp/source: improve completion in type assertions 2020-01-16 01:06:23 +00:00
types
unimported internal/imports: load test exports of package under test 2020-01-14 23:54:10 +00:00
unresolved
unsafe
variadic internal/lsp: fix variadic interface completion ranking 2019-11-18 05:14:29 +00:00
summary.txt.golden internal/lsp: don't show list errors unless necessary 2020-01-27 19:59:09 +00:00