mirror of https://github.com/golang/go.git
This change improves the labels for import suggestions to only show the last part of the path. Since VSCode fuzzy searches for labels in text edit, we now return only the last part of path as text edit instead of replacing the full import path. Just changing label while returning full path leads to bad user experience. Closes golang/go#35877 Change-Id: Ib10e7a3e030dc9b850ff1d9ec8d45240b75b64a3 Reviewed-on: https://go-review.googlesource.com/c/tools/+/255837 Run-TryBot: Danish Dua <danishdua@google.com> Run-TryBot: Rebecca Stambler <rstambler@golang.org> gopls-CI: kokoro <noreply+kokoro@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Rebecca Stambler <rstambler@golang.org> Trust: Danish Dua <danishdua@google.com> |
||
|---|---|---|
| .. | ||
| completion.go | ||
| completion_builtin.go | ||
| completion_format.go | ||
| completion_keywords.go | ||
| completion_labels.go | ||
| completion_literal.go | ||
| completion_package.go | ||
| completion_printf.go | ||
| completion_printf_test.go | ||
| completion_snippet.go | ||
| completion_statements.go | ||
| deep_completion.go | ||
| deep_completion_test.go | ||
| util.go | ||
| util_test.go | ||