commit | 90abf76919f35e4b05aa87d3548c509216ff2025 | [log] [tgz] |
---|---|---|
author | Muir Manders <muir@mnd.rs> | Tue Aug 11 14:16:46 2020 -0700 |
committer | Rebecca Stambler <rstambler@golang.org> | Sat Aug 15 16:56:00 2020 +0000 |
tree | 2467628575f6d623a6d853a415b07871d314cb0d | |
parent | 6fbe43b70d4c56895a8c82c66820be1b62182760 [diff] |
internal/lsp/source: fix a couple issues completing append() args In this example: p := &[]int{} append([]int{}, *<>) At <> we completed to "**p" instead of "*p...". There were two fixes: 1. builtinArgType() wasn't propagating the "modifiers", so we were forgetting about the preceding "*" pointer indirection and inserting it again with the completion. Fix by propagating modifiers. 2. The candidate formatting responsible for adding "..." had over simplified logic to determine if we are completing the variadic param. Now instead the candidate evaluation code marks the candidate as "variadic" so the formatting doesn't have to think at all. Change-Id: Ib71ee8ecfafb915df331f1d2e55b76f76a530243 Reviewed-on: https://go-review.googlesource.com/c/tools/+/248018 Run-TryBot: Rebecca Stambler <rstambler@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Rebecca Stambler <rstambler@golang.org>
This subrepository holds the source for various packages and tools that support the Go programming language.
Some of the tools, godoc
and vet
for example, are included in binary Go distributions.
Others, including the Go guru
and the test coverage tool, can be fetched with go get
.
Packages include a type-checker for Go and an implementation of the Static Single Assignment form (SSA) representation for Go programs.
The easiest way to install is to run go get -u golang.org/x/tools/...
. You can also manually git clone the repository to $GOPATH/src/golang.org/x/tools
.
This repository uses prettier to format JS and CSS files.
The version of prettier
used is 1.18.2.
It is encouraged that all JS and CSS code be run through this before submitting a change. However, it is not a strict requirement enforced by CI.
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.
The main issue tracker for the tools repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/tools/(your subdir):” in the subject line, so it is easy to find.