go/gopls/internal/lsp
Robert Findley b243e57ea8 gopls/internal/lsp/tests: simplify collectCompletionItems, remove Data.t
The marker function collectCompletionItems required at least three
arguments. Express this in its signature, leaving a final variadic
argument for documentation. I considered just making this final argument
mandatory, but opted for minimizing the diff given that there are 400+
existing @item annotations.

With this change the only use of tests.Data.t is in mustRange. Since
conversion to range should always succeed, I switched this usage to a
panic and removed the t field.

For golang/go#54845

Change-Id: I407f07cb85fa1356ceb6dba366007f69d1b6a068
Reviewed-on: https://go-review.googlesource.com/c/tools/+/432337
Reviewed-by: Alan Donovan <adonovan@google.com>
Run-TryBot: Robert Findley <rfindley@google.com>
gopls-CI: kokoro <noreply+kokoro@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2022-09-23 13:52:05 +00:00
..
analysis
browser
cache internal/lsp/source: derive document symbols from syntax alone 2022-09-23 13:51:08 +00:00
cmd internal/lsp/source: derive document symbols from syntax alone 2022-09-23 13:51:08 +00:00
command gopls: add codelens to reset upgrade diagnostics 2022-09-12 15:41:56 +00:00
debug
fake gopls/internal/fake: sort edits by both start and end position 2022-09-17 00:45:41 +00:00
helper
lsppos internal/lsp/source: derive document symbols from syntax alone 2022-09-23 13:51:08 +00:00
lsprpc
mod gopls: add codelens to reset upgrade diagnostics 2022-09-12 15:41:56 +00:00
progress
protocol internal/lsp/source: derive document symbols from syntax alone 2022-09-23 13:51:08 +00:00
regtest internal/gocommand: add instrumentation for hanging go commands 2022-09-15 14:14:04 +00:00
safetoken
snippet
source gopls/internal/lsp: simplify prepareRename tests 2022-09-23 13:51:34 +00:00
template
testdata internal/lsp/source: derive document symbols from syntax alone 2022-09-23 13:51:08 +00:00
tests gopls/internal/lsp/tests: simplify collectCompletionItems, remove Data.t 2022-09-23 13:52:05 +00:00
work
README.md
call_hierarchy.go
code_action.go gopls: add codelens to reset upgrade diagnostics 2022-09-12 15:41:56 +00:00
code_lens.go
command.go gopls: add codelens to reset upgrade diagnostics 2022-09-12 15:41:56 +00:00
completion.go
completion_test.go
debounce.go
debounce_test.go
definition.go
diagnostics.go gopls: add codelens to reset upgrade diagnostics 2022-09-12 15:41:56 +00:00
folding_range.go
format.go
general.go gopls: set codelensProvider in initialize response 2022-09-19 18:40:20 +00:00
highlight.go
hover.go
implementation.go
inlay_hint.go
link.go
lsp_test.go gopls/internal/lsp: simplify prepareRename tests 2022-09-23 13:51:34 +00:00
references.go
rename.go gopls/internal/lsp: simplify prepareRename tests 2022-09-23 13:51:34 +00:00
reset_golden.sh
semantic.go
server.go internal/lsp: latest version of LSP stubs 2022-09-13 15:21:19 +00:00
server_gen.go internal/lsp: latest version of LSP stubs 2022-09-13 15:21:19 +00:00
signature_help.go
symbols.go
text_synchronization.go
workspace.go
workspace_symbol.go

README.md

lsp

internal/lsp provides much of the Language Server Protocol (lsp) implementation for gopls.

Documentation for users and contributors can be found in the gopls/doc directory.