commit | c3402e3c4292abb6993dce7867a91819117b7a30 | [log] [tgz] |
---|---|---|
author | pjw <pjw@google.com> | Sun Jan 24 14:00:12 2021 -0500 |
committer | Peter Weinberger <pjw@google.com> | Tue Feb 02 11:32:59 2021 +0000 |
tree | 61a185b4c5847bf5884db2295ad9a588841cdb4a | |
parent | 2ab23861a01c7c874e7df3a5cd0629cdfe5a403e [diff] |
internal/lsp: update to latest version of LSP protocol The Typescript source is still at version 3.16, but there are new requests, more detailed client capabilities, and an attempt to be more specific about ranges of number in the Typescript code. Vscode defines types integer and uinteger (32-bit signed and unsigned), so the Go code now uses int32 and uint32. They've changed the use of TextDocument, so version information is sometimes missing. cache/session.go:625 was changed correspondingly. This CL also make CodeAction.Disabled into a pointer. New requests or notifications: DidCreateFiles, DidRenameFiles, DidDeleteFiles (notifications) ShowDocument, WillCreateFiles,WillRenameFiles, WillDeleteFiles (request) It's a lot of code; I've probably missed something. Change-Id: I8449ad8473ac00947d0344c5f6133f9bd73b9e10 Reviewed-on: https://go-review.googlesource.com/c/tools/+/286192 Run-TryBot: Peter Weinberger <pjw@google.com> gopls-CI: kokoro <noreply+kokoro@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Rebecca Stambler <rstambler@golang.org> Trust: Peter Weinberger <pjw@google.com>
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.