go/internal/lsp/cmd
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
..
test gopls: write out the raw usage text 2022-02-02 14:51:55 +00:00
usage internal/lsp/debug: add go version to gopls version output 2022-02-07 15:39:03 +00:00
call_hierarchy.go gopls: take control of the flag printing 2022-02-02 14:52:21 +00:00
capabilities_test.go internal/lsp: remove some unused parameters, mostly in the cache package 2021-03-25 00:26:08 +00:00
check.go gopls: take control of the flag printing 2022-02-02 14:52:21 +00:00
cmd.go gopls: cleanup the main help pages 2022-02-02 14:57:28 +00:00
cmd_test.go internal/lsp/cmd: delete TestDefinitionHelpExample test 2020-11-03 23:54:15 +00:00
definition.go gopls: take control of the flag printing 2022-02-02 14:52:21 +00:00
export_test.go
folding_range.go gopls: take control of the flag printing 2022-02-02 14:52:21 +00:00
format.go gopls: add long forms for all the 1 rune flags 2022-02-02 14:56:23 +00:00
help_test.go internal/lsp/debug: add go version to gopls version output 2022-02-07 15:39:03 +00:00
highlight.go gopls: take control of the flag printing 2022-02-02 14:52:21 +00:00
implementation.go gopls: take control of the flag printing 2022-02-02 14:52:21 +00:00
imports.go gopls: add long forms for all the 1 rune flags 2022-02-02 14:56:23 +00:00
info.go internal/lsp/debug: add go version to gopls version output 2022-02-07 15:39:03 +00:00
links.go gopls: take control of the flag printing 2022-02-02 14:52:21 +00:00
prepare_rename.go internal/lsp: use placeholders with prepare rename 2022-02-15 00:29:01 +00:00
references.go gopls: add long forms for all the 1 rune flags 2022-02-02 14:56:23 +00:00
remote.go gopls: take control of the flag printing 2022-02-02 14:52:21 +00:00
rename.go gopls: add long forms for all the 1 rune flags 2022-02-02 14:56:23 +00:00
semantictokens.go gopls: take control of the flag printing 2022-02-02 14:52:21 +00:00
serve.go gopls: cleanup the main help pages 2022-02-02 14:57:28 +00:00
signature.go gopls: take control of the flag printing 2022-02-02 14:52:21 +00:00
subcommands.go gopls: cleanup the main help pages 2022-02-02 14:57:28 +00:00
suggested_fix.go gopls: add long forms for all the 1 rune flags 2022-02-02 14:56:23 +00:00
symbols.go gopls: take control of the flag printing 2022-02-02 14:52:21 +00:00
workspace.go gopls: take control of the flag printing 2022-02-02 14:52:21 +00:00
workspace_symbol.go gopls: take control of the flag printing 2022-02-02 14:52:21 +00:00