[gopls-release-branch.0.7] all: merge master into gopls-release-branch.0.7
4fe0d6c80 internal/lsp: skip signature help within a string literal
0c506a274 internal/lsp/source: evaluate bin/hex literal on hover
46d1522a5 internal/lsp: add extract to method code action
c740bfd9b internal/lsp: handle incorrect import with CRLF line endings
251092de1 internal/lsp/source: compute imports text edits from scratch
412ee174e all: add SliceToArrayPointer instruction
7f68387a4 internal/lsp/source: workspace symbol improvements for selectors
7aa829446 internal/lsp: handle panic in fix AST
6e9046bfc gopls/doc: fix imports function for Neovim LSP
0cf4e2708 internal/lsp/semantic: improve semantic token processing
5061c412c internal/lsp: signal diagnostic completion if modification failed
ef97713d9 gopls/doc: add vetted examples for Sublime Text
8e85a283c internal/lsp: adopt bcmills' suggestion for an improved debouncer API
ae0deb7a4 internal/lsp: fix variable reuse bug in code actions
d36a54b56 internal/lsp: improve package search in a couple places
384460091 gopls/internal/regtest: add a flag to profile didChange handling
de4477617 gopls/doc: Neovim v0.5 is now stable
ccff7327b internal/lsp/source: fix comment update during rename for short variable declarations
a7dfe3d2b internal/lsp: attempt to make TestDebouncer more robust
980829d8a internal/lsp/lsprpc: add an AutoDialer abstraction
cb1acef8b Revert "internal/lsp/semantic.go: repress useless messages and tighten logic"
5b540d349 internal/lsp/semantic.go: repress useless messages and tighten logic
e33c0f293 go/packages: skip tests that link binaries in short mode
8e32e9f14 internal/lsp/regtest: fix a panic TestResolveImportCycle
2583041a9 go/packages: fix data race in TestCgoNoSyntax
69948257b go/ssa: incorrect document in type Builtin struct
e688b9451 go/packages: parallelize most tests
64bd808b7 internal/lsp/cache: don't report a context error if load succeeded
cae92d5d6 go/packages: skip GOPATH tests in short mode
2f04284e7 internal/lsp/regtest: allow for unsent diagnostics in TestResolveImportCycle
41a65bdc1 internal/lsp: avoid flake in TestDebouncer
1c9019e64 internal/lsp/cache: fix raciness of updating the view workspace
febfa9d67 internal/lsp/source: move diagnosticsDelay out of experimental
71eae3a1b internal/lsp/cache: be consistent about using snapshot.FileSet
251f28368 internal/lsp: add a setting to batch didChangeWatchedFile notifications
c979f9254 internal/lsp/cache: invalidate packages in setMetadata
55cd4804d gopls/doc: Document how gopls generates semantic tokens.
77c1b7a4f internal/lsp/cmd: print flags when running gopls help
640c1dea8 go/ssa: support unsafe.Add and unsafe.Slice
fd0057433 internal/lsp/protocol: upgrade generated lsp code to beginning of July
7edcfe523 internal/lsp/lsprpc: add a goenv middleware
e3040f272 internal/lsp/lsprpc: add a CommandInterceptor middleware
ea370293d internal/lsp/lsprpc: use middleware for the V2 handshaking
20dafe5d6 go/ssa: allow conversion from slice to array pointer
f0847e0ce go/callgraph: change reflect.Call to reflect.Value.Call in comment
72e4d1bb8 go/internal/cgo: handle symlinks with $PWD, not -srcdir
100b22926 internal/lsp/cache: treat load timeouts as critical errors
12f8456a0 internal/testenv: actually Exit if small machine for netbsd-arm*-bsiegert
00129ffdb internal/lsp/lsprpc: update binder tests to handle forwarding
fe2294a1b internal/jsonrpc2_v2: initialize async before binding
636017e13 internal/lsp/cache: fix missing pkg error on Windows
48cad5ecb tools/gopls: small fixes to contributing.md
da404b52b internal/lsp: start parsing go.work file like gopls.mod file
4833ac519 internal/mod: add workfile parser
bfc167431 internal/lsp/cache: fix loading of std and cmd
d824a7481 gopls/doc: include instructions for compiling generic code
6d3e43932 gopls/doc: add instructions for working with generic code
4c651fc1f internal/lsp/source: add inferred types to generic function hover
d25f90668 internal/lsp: do not block on channel when there is an error
463a76b3d internal/lsp: only reload invalid metadata when necessary
116feaea4 internal/lsp: move the progress tracker to the session
3f7c32638 gopls/internal/regtest: skip the flaky TestResolveImportCycle
b12e6172d internal/lsp/cache: don't delete metadata until it's reloaded
4b484fb13 internal/lsp: exclude the module cache from the workspace
9a55cb1fb internal/lsp/command: minor clean-up of StartDebugging description
490eac872 internal/lsp/command: add missing doc and support for result parameters
9aa007ed1 internal/lsp/cache: invalidate broken packages when imports are deleted
f6327c5b2 vta: adds the VTA call graph construction
13cf84452 go/ast/astutil: fix panic when rewriting multi-argument type instances
937957b6d vta: adds VTA graph propagation functionality
e0b9cf74f lsp/completion: support completing to Elem() types
16e5f5500 lsp/completion: search deeper for candidate type mods
b57987414 lsp/completion: reorganize how we track candidate type mods
890984ba2 internal/lsp: change generated variable names to be more verbose
9f230b562 internal/lsp: fix extract bug choosing available identifiers
4e58f8f09 internal/lsp: handle out of range panic in template parsing
716319fe5 vta: finalizes VTA graph construction by adding support for function calls
234f954de vta: extends VTA graph construction to handle collections
126df1d64 cmd/getgo: determine current version via /dl/?mode=json API
b9b845e62 internal/lsp: fix folding range for block comments
1225b6f53 internal/lsp: memoize allKnownSubdirs instead of recomputing
7295a4e73 lsp/completion: don't offer untyped conversions
bf132055d vta: adds VTA graph construction for basic program statements
8f2cf6ccf gopls/internal/regtest: clean up TestFillReturnsPanic
4abb1e2f2 internal/lsp: handle empty buffers in template parsing
7ac129f24 internal/lsp: don't diagnose/analyze intermediate test variants
1c2154ae3 internal/lsp: address some staticcheck warning
Change-Id: Ie2238b8bad61a238b46d1e5ae34e0c5fd13950be
diff --git a/gopls/go.mod b/gopls/go.mod
index a993cce..a79da5c 100644
--- a/gopls/go.mod
+++ b/gopls/go.mod
@@ -13,7 +13,7 @@
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c // indirect
golang.org/x/sys v0.0.0-20210510120138-977fb7262007
golang.org/x/text v0.3.6 // indirect
- golang.org/x/tools v0.1.0
+ golang.org/x/tools v0.1.3-0.20210608163600-9ed039809d4c
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect
honnef.co/go/tools v0.2.0
mvdan.cc/gofumpt v0.1.1
diff --git a/gopls/go.sum b/gopls/go.sum
index b889ac4..75d3882 100644
--- a/gopls/go.sum
+++ b/gopls/go.sum
@@ -11,7 +11,6 @@
github.com/google/safehtml v0.0.2/go.mod h1:L4KWwDsUJdECRAEpZoBn3O64bQaywRscowZjJAzjHnU=
github.com/jba/templatecheck v0.6.0 h1:SwM8C4hlK/YNLsdcXStfnHWE2HKkuTVwy5FKQHt5ro8=
github.com/jba/templatecheck v0.6.0/go.mod h1:/1k7EajoSErFI9GLHAsiIJEaNLt3ALKNw2TV7z2SYv4=
-github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck=
github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
@@ -28,19 +27,28 @@
github.com/stretchr/testify v0.0.0-20161117074351-18a02ba4a312/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
github.com/stretchr/testify v1.4.0 h1:2E4SXV/wtOkTonXsotYi4li6zVWxYlZuYNCXe9XRJyk=
github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
+github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
+golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
+golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/mod v0.4.2 h1:Gz96sIWK3OalVv/I/qNygP42zyoKp3xptRVCWRFEBvo=
golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
+golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
+golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM=
+golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
+golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c h1:5KslGYwFpkhGh+Q16bwMP3cOontH8FOep7tGV86Y7SQ=
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210510120138-977fb7262007 h1:gG67DSER+11cZvqIMb8S8bt0vZtiN6xWYARwirrOSfE=
golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
@@ -49,6 +57,13 @@
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/text v0.3.6 h1:aRYxNxv6iGQlyVaZmk6ZgYEDa+Jg18DxebPSrd6bg1M=
golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
+golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
+golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
+golang.org/x/tools v0.0.0-20210101214203-2dba1e4ea05c/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
+golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0=
+golang.org/x/tools v0.1.3-0.20210608163600-9ed039809d4c h1:Pv9gNyJFYVdpUAVZYJ1BDSU4eGgXQ+0f3DIGAdolO5s=
+golang.org/x/tools v0.1.3-0.20210608163600-9ed039809d4c/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
+golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE=
@@ -60,8 +75,6 @@
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
gopkg.in/yaml.v2 v2.2.4 h1:/eiJrUcujPVeJ3xlSWaiNi3uSVmDGBK1pDHUHAnao1I=
gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
-honnef.co/go/tools v0.1.4 h1:SadWOkti5uVN1FAMgxn165+Mw00fuQKyk4Gyn/inxNQ=
-honnef.co/go/tools v0.1.4/go.mod h1:NgwopIslSNH47DimFoV78dnkksY2EFtX0ajyb3K/las=
honnef.co/go/tools v0.2.0 h1:ws8AfbgTX3oIczLPNPCu5166oBg9ST2vNs0rcht+mDE=
honnef.co/go/tools v0.2.0/go.mod h1:lPVVZ2BS5TfnjLyizF7o7hv7j9/L+8cZY2hLyjP9cGY=
mvdan.cc/gofumpt v0.1.1 h1:bi/1aS/5W00E2ny5q65w9SnKpWEF/UIOqDYBILpo9rA=
diff --git a/internal/lsp/debug/info.go b/internal/lsp/debug/info.go
index 3533b36..fddfff2 100644
--- a/internal/lsp/debug/info.go
+++ b/internal/lsp/debug/info.go
@@ -26,7 +26,7 @@
)
// Version is a manually-updated mechanism for tracking versions.
-const Version = "master"
+const Version = "v0.7.2"
// ServerVersion is the format used by gopls to report its version to the
// client. This format is structured so that the client can parse it easily.