1
0
mirror of https://github.com/golang/go synced 2024-11-18 07:04:52 -07:00
go/internal
Danish Dua 84ab570110 internal/lsp: add completion suggestions for import statements
This change adds completion within import blocks. Completions are suggested by directory depth of import so end user isn't shown a large list of possible imports at once. As an example, searching import for prefix "golang" would suggest "golang.org/" and then subdirectories under that (ex: "golang.org/x/"") on successive completion request and so on until a complete package path is selected.

Change-Id: I962d32f2b7eef2c6b2ce8dc8a326ea34c726aa36
Reviewed-on: https://go-review.googlesource.com/c/tools/+/250301
Run-TryBot: Danish Dua <danishdua@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
2020-08-27 18:03:53 +00:00
..
analysisinternal internal/analysisinternal: add anonymous structs & interfaces to 2020-08-25 20:24:27 +00:00
apidiff
event
fakenet
fastwalk
gocommand all: rework goimports environment, support GOMODCACHE 2020-06-25 17:33:20 +00:00
gopathwalk internal/imports: fix crash when adding stdlib imports 2020-08-13 17:47:04 +00:00
imports internal/lsp: add completion suggestions for import statements 2020-08-27 18:03:53 +00:00
jsonrpc2 internal/lsp: support go1.12 2020-07-20 15:02:56 +00:00
lsp internal/lsp: add completion suggestions for import statements 2020-08-27 18:03:53 +00:00
memoize internal/memoize: switch from GC-driven to explicit deletion 2020-08-10 19:02:17 +00:00
packagesinternal
proxydir
span internal/lsp/source: fix completion on final line of a document 2020-08-25 22:56:35 +00:00
stack
testenv
tool
typesinternal
xcontext