commit | cda13e227d5990b6fcbafd0b4bf226cd09f6c44d | [log] [tgz] |
---|---|---|
author | hiroebe <hiroebe41@gmail.com> | Wed Mar 30 17:03:58 2022 +0000 |
committer | Peter Weinberger <pjw@google.com> | Thu Mar 31 23:32:26 2022 +0000 |
tree | c2a0603ad24ad1464f39432cbf47a56445540c57 | |
parent | 41787c4fe7502ad8f20ea14e732e89d35ea24426 [diff] |
internal/lsp: fix incorrect line and start of semantic tokens Current implementation returns incorrect result when some of the items are skipped, because positions could be relative to a skipped item. Instead, each position must be relative to the previous item added to the result. Change-Id: I3c1a68d37bf0c9cfc1bccfe6f76c25b536224293 GitHub-Last-Rev: 6eedc7cbcc27f47ed5742b340f4438291ab70863 GitHub-Pull-Request: golang/tools#376 Reviewed-on: https://go-review.googlesource.com/c/tools/+/396715 Run-TryBot: Peter Weinberger <pjw@google.com> gopls-CI: kokoro <noreply+kokoro@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Peter Weinberger <pjw@google.com> Trust: Peter Weinberger <pjw@google.com> Trust: Suzy Mueller <suzmue@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 install
.
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 install golang.org/x/tools/...@latest
.
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.