1
0
mirror of https://github.com/golang/go synced 2024-10-01 04:18:33 -06:00
go/internal/lsp/source
Suzy Mueller d308a98e2e internal/lsp: prefer inserting imports into existing blocks
Insert imports into existing multiline import declarations when
possible.

Logic for choosing where to insert taken from
golang.org/x/tools/go/ast/astutil.

Change-Id: Ie5ad96d5e3d5db2e92a2c05a6104d14a4a192ed3
Reviewed-on: https://go-review.googlesource.com/c/tools/+/190598
Run-TryBot: Suzy Mueller <suzmue@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Cottrell <iancottrell@google.com>
2019-08-19 17:23:55 +00:00
..
analysis.go internal/lsp: label context cancellation errors 2019-08-15 23:24:24 +00:00
completion_format.go internal/lsp: prefer inserting imports into existing blocks 2019-08-19 17:23:55 +00:00
completion_snippet.go internal/lsp: provide deep completion candidates 2019-06-27 18:58:03 +00:00
completion.go internal/lsp: add completions of unimported std lib pkgs 2019-08-16 18:32:40 +00:00
deep_completion.go internal/lsp: don't deep complete struct field names 2019-08-13 21:38:55 +00:00
diagnostics_test.go internal/span: change URI.Filename so it just returns the filename 2019-06-10 21:39:43 +00:00
diagnostics.go internal/lsp: use protocol.Range for diagnostics instead of span.Span 2019-08-16 17:06:24 +00:00
enums.go internal/lsp: switch completion item tests to using the enum strings 2019-04-17 17:57:43 +00:00
format.go internal/lsp: add completions of unimported std lib pkgs 2019-08-16 18:32:40 +00:00
highlight.go internal/lsp: split the telemetry library out 2019-08-15 21:28:02 +00:00
hover.go internal/lsp: split the telemetry library out 2019-08-15 21:28:02 +00:00
identifier.go internal/lsp: split the telemetry library out 2019-08-15 21:28:02 +00:00
imports_test.go internal/lsp: prefer inserting imports into existing blocks 2019-08-19 17:23:55 +00:00
imports.go internal/lsp: prefer inserting imports into existing blocks 2019-08-19 17:23:55 +00:00
references.go internal/lsp: split the telemetry library out 2019-08-15 21:28:02 +00:00
rename_check.go internal/lsp: use memoize package to cache source.Packages 2019-08-13 21:41:43 +00:00
rename.go internal/lsp: return rename errors for one package only 2019-08-16 17:04:40 +00:00
signature_help.go internal/lsp: split the telemetry library out 2019-08-15 21:28:02 +00:00
source_test.go internal/lsp: add completions of unimported std lib pkgs 2019-08-16 18:32:40 +00:00
suggested_fix.go go/analysis: remove +experimental build tag from suggested fixes 2019-08-08 19:51:39 +00:00
symbols.go internal/lsp: split the telemetry library out 2019-08-15 21:28:02 +00:00
util.go internal/lsp: show "do not edit" message when user opens generated file 2019-08-07 16:44:42 +00:00
view.go internal/lsp: show generated warning on didChange, not didOpen 2019-08-13 21:47:29 +00:00