go/gopls/internal
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
..
coverage gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
govulncheck gopls/internal/govulncheck: sync x/vuln@62b0186 2022-09-02 15:10:33 +00:00
hooks gopls/internal/lsp/source: remove Govulncheck from Hooks 2022-09-12 13:57:24 +00:00
lsp gopls/internal/fake: sort edits by both start and end position 2022-09-17 00:45:41 +00:00
regtest gopls/internal/lsp/source: make "chatty" diagnostics the default 2022-09-12 18:14:22 +00:00
vulncheck gopls/internal/lsp/source: remove Govulncheck from Hooks 2022-09-12 13:57:24 +00:00
migrate.sh gopls/internal/migrate.sh: a script to migrate internal/lsp to gopls/ 2022-09-07 14:10:36 +00:00