mirror of https://github.com/golang/go.git
Eliminate the need to work around newline terminated files in completion, by storing selection ranges as token.Pos and using an lsppos.TokenMapper derived from the file content, which does not have problems with newline termination. This simplifies the completion logic, and removes the last use of MappedRange.SpanRange, which is an inconisitent API in that it returns positions in the compiled source, rather than edited source. Change-Id: I65232787956325172b48fd42d85cbb598039ee5a Reviewed-on: https://go-review.googlesource.com/c/tools/+/407889 Reviewed-by: Alan Donovan <adonovan@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Robert Findley <rfindley@google.com> gopls-CI: kokoro <noreply+kokoro@google.com> |
||
|---|---|---|
| .. | ||
| analysisinternal | ||
| apidiff | ||
| event | ||
| fakenet | ||
| fastwalk | ||
| gocommand | ||
| gopathwalk | ||
| imports | ||
| jsonrpc2 | ||
| jsonrpc2_v2 | ||
| lsp | ||
| memoize | ||
| packagesinternal | ||
| proxydir | ||
| span | ||
| stack | ||
| testenv | ||
| tool | ||
| typeparams | ||
| typesinternal | ||
| xcontext | ||