go/gopls/internal/lsp
Robert Findley 4d18923f06 gopls/internal/fake: sort edits by both start and end position
When processing edits, they must be non-overlapping but they may be
adjacent: we must allow for insertions adjacent to replacements, e.g. an
edit of 3:1-3:1 followed by an edit of 3:1-3:15. Achieve this in the
fake editor by sorting edits by end position after start position.

Longer term, we should eliminate this ad-hoc editing in favor of
diff.ApplyEdit.

Change-Id: I72a252952585d0a652d97287486aa61c167db485
Reviewed-on: https://go-review.googlesource.com/c/tools/+/431219
gopls-CI: kokoro <noreply+kokoro@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Dylan Le <dungtuanle@google.com>
Run-TryBot: Robert Findley <rfindley@google.com>
2022-09-17 00:45:41 +00:00
..
analysis gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
browser gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
cache gopls: add codelens to reset upgrade diagnostics 2022-09-12 15:41:56 +00:00
cmd internal/lsp: latest version of LSP stubs 2022-09-13 15:21:19 +00:00
command gopls: add codelens to reset upgrade diagnostics 2022-09-12 15:41:56 +00:00
debug gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
fake gopls/internal/fake: sort edits by both start and end position 2022-09-17 00:45:41 +00:00
helper gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
lsppos gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
lsprpc gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
mod gopls: add codelens to reset upgrade diagnostics 2022-09-12 15:41:56 +00:00
progress gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
protocol gopls/internal/lsp/protocol: fix json tags and indirect some zero values 2022-09-16 20:08:00 +00:00
regtest internal/gocommand: add instrumentation for hanging go commands 2022-09-15 14:14:04 +00:00
safetoken gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
snippet gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
source gopls/internal/lsp/source: make "chatty" diagnostics the default 2022-09-12 18:14:22 +00:00
template gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
testdata gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
tests gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
work gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
README.md gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
call_hierarchy.go gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
code_action.go gopls: add codelens to reset upgrade diagnostics 2022-09-12 15:41:56 +00:00
code_lens.go gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
command.go gopls: add codelens to reset upgrade diagnostics 2022-09-12 15:41:56 +00:00
completion.go gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
completion_test.go gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
debounce.go gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
debounce_test.go gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
definition.go gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
diagnostics.go gopls: add codelens to reset upgrade diagnostics 2022-09-12 15:41:56 +00:00
folding_range.go gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
format.go gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
general.go internal/lsp: latest version of LSP stubs 2022-09-13 15:21:19 +00:00
highlight.go gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
hover.go gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
implementation.go gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
inlay_hint.go gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
link.go gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
lsp_test.go gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
references.go gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
rename.go gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
reset_golden.sh gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
semantic.go gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
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 gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
symbols.go gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
text_synchronization.go gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
workspace.go gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
workspace_symbol.go gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00

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.