mirror of
https://github.com/golang/go
synced 2024-11-18 22:55:23 -07:00
c81e7ae886
We used to need our own copy of astutil.AddNamedImport to use during completion for a variety of reasons, but I think the major one was needing to not format the whole file. The same problem applied to using the imports package. Happily, that was resolved in CL 205678. Now we can use the same implementation on both paths. In addition to removing a bunch of code, that means that unimported completions now add their imports in the right place, respecting goimports grouping and the local configuration setting. Fixes golang/go#35519. Change-Id: I693c2e8b5ced9bac62b1febf1e2db23c770e5a7a Reviewed-on: https://go-review.googlesource.com/c/tools/+/206881 Run-TryBot: Heschi Kreinick <heschi@google.com> Reviewed-by: Rebecca Stambler <rstambler@golang.org> |
||
---|---|---|
.. | ||
comment_test.go | ||
comment.go | ||
completion_format.go | ||
completion_keywords.go | ||
completion_labels.go | ||
completion_literal.go | ||
completion_snippet.go | ||
completion.go | ||
deep_completion.go | ||
diagnostics.go | ||
errors.go | ||
folding_range.go | ||
format.go | ||
highlight.go | ||
hover.go | ||
identifier.go | ||
implementation.go | ||
options.go | ||
references.go | ||
rename_check.go | ||
rename.go | ||
signature_help.go | ||
source_test.go | ||
suggested_fix.go | ||
symbols.go | ||
tidy.go | ||
util.go | ||
view.go |