go/internal/lsp/protocol
Suzy Mueller 2405dce5ad internal/lsp: use placeholders with prepare rename
When a prepare rename request is issued on an package
import with no alias, the range returned by prepare
rename has length 0. This by itself does not provide
enough information to the client about what the original
name of the import statement. By returning a range and
a placeholder, this allows the client to correctly present
the information about what is being renamed to the user.

Change-Id: I191fdc666616d1ddf718d2a0b1461b9b645af879
Reviewed-on: https://go-review.googlesource.com/c/tools/+/360836
Trust: Suzy Mueller <suzmue@golang.org>
Run-TryBot: Suzy Mueller <suzmue@golang.org>
gopls-CI: kokoro <noreply+kokoro@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Peter Weinberger <pjw@google.com>
2022-02-15 00:29:01 +00:00
..
typescript internal/lsp: use placeholders with prepare rename 2022-02-15 00:29:01 +00:00
codeactionkind.go
context.go
doc.go
enums.go
log.go
protocol.go internal/lsp/lsprpc: implement cancellation using jsonrpc2_v2 2021-05-19 14:12:35 +00:00
span.go internal/lsp: eliminate funcs from commands, and refactor 2021-02-09 22:07:08 +00:00
tsclient.go internal/lsp: use placeholders with prepare rename 2022-02-15 00:29:01 +00:00
tsprotocol.go internal/lsp: use placeholders with prepare rename 2022-02-15 00:29:01 +00:00
tsserver.go internal/lsp: use placeholders with prepare rename 2022-02-15 00:29:01 +00:00