mirror of https://github.com/golang/go.git
Autocompleting a import without quotes appends to the completion, producing this result: `import math "math/"`. This commit changes to skip completions when typing a import without quotes, because the users can be typing the alias of the import. Fixes: golang/go#42748 Change-Id: I7050989f1f90a6720c17f71f338e50fad1f01456 GitHub-Last-Rev: e7b189a04acd8e501d6d7ac944d25de19156d0da GitHub-Pull-Request: golang/tools#263 Reviewed-on: https://go-review.googlesource.com/c/tools/+/280652 Reviewed-by: Rebecca Stambler <rstambler@golang.org> Run-TryBot: Rebecca Stambler <rstambler@golang.org> gopls-CI: kokoro <noreply+kokoro@google.com> TryBot-Result: Go Bot <gobot@golang.org> Trust: Hyang-Ah Hana Kim <hyangah@gmail.com> Trust: Rebecca Stambler <rstambler@golang.org> |
||
|---|---|---|
| .. | ||
| builtin.go | ||
| completion.go | ||
| deep_completion.go | ||
| deep_completion_test.go | ||
| format.go | ||
| keywords.go | ||
| labels.go | ||
| literal.go | ||
| package.go | ||
| printf.go | ||
| printf_test.go | ||
| snippet.go | ||
| statements.go | ||
| util.go | ||
| util_test.go | ||