1
0
mirror of https://github.com/golang/go synced 2024-10-01 01:48:32 -06:00
go/internal/lsp
Muir Manders a044388aa5 internal/lsp: add literal completions for basic types
Normally you don't want literal candidates for basic types (e.g.
"int(0)") since you can type the literal value without the type name.
One exception is if you are creating a named basic type that
implements an interface. For example:

http.Handle("/", http.FileServer(<>))

will now give "http.Dir()" as a candidate since http.Dir is a named
string type that implements the required interface http.FileSystem.

Change-Id: Id2470c45e469ea25cd0f9849cfdad19ac0e784bb
Reviewed-on: https://go-review.googlesource.com/c/tools/+/195838
Run-TryBot: Rebecca Stambler <rstambler@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
2019-09-25 13:41:13 +00:00
..
browser internal/lsp: add version and bug commands 2019-05-11 04:16:02 +00:00
cache internal/lsp/cache: move to a model of caching in a snapshot 2019-09-25 02:06:38 +00:00
cmd internal/lsp: fix regeneration of golden files 2019-09-25 13:16:59 +00:00
debug internal/lsp/debug: bump version number for release 2019-09-16 17:20:13 +00:00
diff all: fix more typos 2019-09-11 15:13:14 +00:00
fuzzy all: fix more typos 2019-09-11 15:13:14 +00:00
protocol internal/lsp/protocol: update to protocol version 3.15 2019-09-25 02:06:47 +00:00
snippet internal/lsp: add literal completion candidates 2019-09-18 17:13:17 +00:00
source internal/lsp: add literal completions for basic types 2019-09-25 13:41:13 +00:00
telemetry internal/lsp/cache: add additional spans for tracing 2019-09-05 21:33:45 +00:00
testdata internal/lsp: add literal completions for basic types 2019-09-25 13:41:13 +00:00
tests internal/lsp: add literal completions for basic types 2019-09-25 13:41:13 +00:00
code_action.go internal/lsp: associate code action diagnostics with suggested fixes 2019-09-24 23:33:35 +00:00
command.go internal/lsp: support running go mod tidy as a code action 2019-09-20 13:08:46 +00:00
completion_test.go internal/lsp: reorganize completion tests 2019-09-24 17:09:08 +00:00
completion.go internal/lsp: reorganize completion tests 2019-09-24 17:09:08 +00:00
definition.go x/tools/gopls: convert to the august, 2019 version of the LSP protocol 2019-09-08 13:59:31 +00:00
diagnostics.go internal/lsp: associate code action diagnostics with suggested fixes 2019-09-24 23:33:35 +00:00
folding_range.go internal/lsp: use the view options, not the session options 2019-09-11 22:59:40 +00:00
format.go internal/lsp: change to protocol.TextEdit for formatting 2019-09-06 17:54:09 +00:00
general.go internal/lsp/protocol: update to protocol version 3.15 2019-09-25 02:06:47 +00:00
highlight.go x/tools/gopls: convert to the august, 2019 version of the LSP protocol 2019-09-08 13:59:31 +00:00
hover.go internal/lsp: use the view options, not the session options 2019-09-11 22:59:40 +00:00
link.go internal/lsp: distinguish parse errors from actual errors 2019-09-17 21:21:32 +00:00
lsp_test.go internal/lsp: fix regeneration of golden files 2019-09-25 13:16:59 +00:00
references.go internal/lsp: remove the GetToken and GetAST functions 2019-09-09 18:10:35 +00:00
rename.go x/tools/gopls: convert to the august, 2019 version of the LSP protocol 2019-09-08 13:59:31 +00:00
reset_golden.sh internal/lsp: fix regeneration of golden files 2019-09-25 13:16:59 +00:00
server.go internal/lsp: support running go mod tidy as a code action 2019-09-20 13:08:46 +00:00
signature_help.go x/tools/gopls: convert to the august, 2019 version of the LSP protocol 2019-09-08 13:59:31 +00:00
symbols.go internal/lsp: switch to using protocol positions for document symbols 2019-09-06 18:11:17 +00:00
text_synchronization.go internal/lsp: support running go mod tidy as a code action 2019-09-20 13:08:46 +00:00
util.go internal/lsp: use protocol.TextEdits in suggested fixes 2019-09-07 02:01:28 +00:00
watched_files.go internal/lsp/cache: move to a model of caching in a snapshot 2019-09-25 02:06:38 +00:00
workspace.go internal/lsp: merge session and view options into one 2019-09-11 19:36:49 +00:00