Skip to content

Commit a7a7131

Browse files
committed
deps: update x/tools and gopls to 84f829e2765f
* gopls/internal/lsp/cache: better panic if metadata invariant is broken 84f829e27 * gopls/internal/lsp/cache: frob: a fast encoder with gob-like powers 03275ec1a * gopls/internal/lsp: don't awaitLoaded inside resolveImportGraph dbfa51380 * gopls/internal/lsp: fix a latent bug in orphaned file reloading b16097183 * internal/facts: strength-reduce Package param to PackagePath 67aade56d * gopls/internal/lsp/source/typerefs: optimize getPackageHandles ffc82f3af * gopls/internal/lsp: only diagnose one package per file 50a6ef662 * internal/gcimporter: don't panic when exporting a builtin 'Error' method 48026e1f7 * gopls/protocol/generate: upgrade generating LSP stubs 5fed7a883 * gopls/internal/lsp/debug: display Analysis.Run times b9fd8df27 * gopls/internal: update LSP support 799eec0fd * gopls/internal/lsp/source: fix spurious "unexpected var object" error c6de5f512 * gopls/internal/regtest/bench: add a test simulating typing ba3c31c94 * gopls/internal/regtest/bench: add an 'oracle' benchmark repo 80c9aad95 * gopls/internal/regtest/bench: clean up profile flags e10bcf6a4 * go/types/internal/play: show enclosing scopes and method sets 50a7e142c * internal/typeparams: improve the panic in OriginMethod 12fe14902 * internal/gcimporter: supporting encoding objects from different packages 89d9fae1d * go/analysis: remove pointless comments dbd600188 * internal/gopathwalk: use opts.Logf for errors if set 67d73b296 * go/analysis: pass package's Go version to type checker 1ca21856a * gopls/internal/regtest/workspace: fix TestQuickFix_AddGoWork for go1.21 a721062d8 * internal/analysisutil: avoid IsNamed panic on built-in named types ba23fc4ab * go/analysis/passes/slog: unskip test e1d0f9142 * gopls: commands to start/stop profiling, and a new benchmark metric c35476fcc * internal/gopathwalk: use os.ReadFile instead of ioutil.ReadFile ec9bc5342 * internal/cmd/deadcode: a command to report dead code in Go programs aac7fb67a * gopls/internal/lsp/source: put context first in extracted functions 538a6e9ed * internal/lsp/analysis: embed directive analyzer check following decl ef1254549 * internal: fix typo 7bb83606e * go/callgraph/rta: doc tweaks 7fa7e852d * cmd/digraph: somepath: search breadth-first to find minimal path d86c72936 * gopls/internal/lsp/source/completion: avoid duplicates from variants eaebeac4e * cmd/digraph: consolidate -help message and package doc ac255dec7 * go/analysis/passes/slog: replace XXXCtx names with XXXContext dfb7d247d * gopls/internal/lsp: make gopls.start_debugging open browser 8f0778217 * go/callgraph/rta: optimise 'implements' operation 4b177d0be * gopls/internal/lsp/filecache: increase idle GC period to 6 hours eaca1d005 * internal/pprof: a function to compute total pprof time 124ebfa4c * go/callgraph/rta: model reflective calls soundly 83045326b * go/packages: pass go list-reported Go language version to type checker f9f582ef3 * gopls/internal/lsp/source/completion: honor usePlaceholders e7916d015 * gopls/internal/lsp/source/completion: placeholders for type params 1d07f1ba5 * gopls/internal/regtest/marker: skip addgowork.txt 2d9070144 * gopls/internal/lsp/source/xrefs: include refs to methods of generics 8060af96a * gopls/internal/lsp/source: ignore objectpath error in rename a8cf665b1 * gopls: remove dead code eeb93eded * gopls/internal/lsp/cache: plumb analysis URLs to client 781c46759 * go.mod: update golang.org/x dependencies 675bf3c24 * go/ssa/interp: support conversions to slices of named bytes ad52c1ca3 * gopls/doc/contributing.md: document error handling strategies 14ec3c023 * go/packages/gopackages: document -mode flag c49536416 * gopls/internal/lsp/source/typerefs: move test into _test.go 87ad891fe * internal/fastwalk: doc formatting fixes (including godoc links) 27fd94e09 * gopls/internal/lsp/filecache: reduce GC frequency d362be0cd * Revert "go/analysis: add Sizes that matches gc size computations" 969078be4 * go/analysis: add Sizes that matches gc size computations 5aa6acb96 * go/vcs: delete 5a89a3bf2 * go/vcs: isolate into a nested module d03a819dc * go/vcs: deprecate package in favor of go list -json a6594121c * gopls/internal/lsp/cmd: list bug reports in 'gopls bug' 9d8d4089c * go/ast/inspector: clarify behavior regarding comment traversal 8f9bce43b * gopls/internal/lsp/cache: don't panic when import fails during analysis fa103593d * gopls/internal/lsp/cache: don't record edges to invalid packages c8278fe90 * cmd/godoc: disable TestWebIndex, a very slow test 87df9bcac * gopls/internal/lsp/cache: remove ITVs from shared import graph 63624dfc8 * gopls/internal/lsp/cache: fix nil panic in analysis toSourceDiagnostic 0ca9d30bb * gopls/internal/lsp/cache: add debugging assertion for golang/go#60904 85554d61b * gopls/internal/lsp/cache: guard against "unsafe" by package path, not ID 9960b693c * gopls/internal/lsp/cache: use types.Unsafe in analysisPackage 6480332be * gopls/internal/lsp/work: don't crash when hovering over broken mod dir 155320d39 * gopls/internal/lsp/cache: reduce importing in analysis b71392afd * internal/gcimporter: avoid a crash when exporting a struct with no pkg d1a388b0e * cmd/digraph: add "to dot" to emit Graphviz dot a4ed05f16 * gopls/internal/regtest: fix goimports on windows when using vendoring 7261b3269 * gopls/internal/lsp/source/completion: ensuring completion completeness 41e4e5654 * go/ssa: fix bug in writeSignature on external functions ac2946029 * go/ssa: use core type within (*builder).receiver 3b62e7e25 * gopls/internal/lsp/cache: compute xrefs and methodsets asynchronously f394d451f * go.mod: update golang.org/x dependencies 27dbf8527 * go/types/objectpath: memoize scope lookup in objectpath.Encoder c6c983054 * gopls/internal/regtest/codelens: set GOWORK=off for go mod vendor 0245e1dfc * go/analysis/passes/defers: add analyser for defer mistake 85be8882c * cmd/digraph: improve examples using go list, mod c43232f86 * internal/gcimporter: treat unknown constant values the same as invalid 6e1595c15 * gopls/internal/lsp/cache: two minor simplifications c59d87f5d * go/packages/packagestest: set Config.Logf if the test is run verbosely db6a81ed1 * internal/typeparams: work around LookupFieldOrMethod inconsistency a01290f98 * gopls/internal/lsp/filecache: reduce lifespan of os.FileInfos 6f567c809 * gopls/internal/lsp: enable min/max builtin completion test 726c727df * gopls: unimported completion should use the completion matcher 86c93e873 * gopls/internal/lsp/source: fix panic in typeDefinition on comparable 04ceacbfb * gopls/internal/lsp/source/methodsets: comparable also has no package 947adca51 * gopls/internal/lsp/cache: add assertions c35c44fa0 * internal/diff: fix LineEdits bug in slow path 0b4461bab * internal/diff: fix LineEdits bug in fast path 1943c1e3e * go/pointer: delete package c6d86c4f3 * go/types/objectpath: remove unnecessary unsafe import 77fd064f3 * go/pointer: remove replace directive 0dda7d614 * gopls/internal/lsp/cache: check number of orphaned files after filtering 98f1b4dee * go/pointer: create submodule a260315e3 * cmd/{guru,callgraph}: stop using go/pointer 96844c359 * go/packages: include "unsafe".GoFiles=["unsafe.go"] cd694d8db * gopls/internal/lsp: add min/max builtin 33c741de7 * internal/lsp/source: use exact match in import highlighting 933c7ccb1 * gopls/internal/lsp: clear vuln diagnostics on config changes 5974258e6 * go/packages: pass -pgo=off on go1.21 and later f3faea198 * internal/lsp/debug: add links to profiles and GC 5f74ec7da * internal/diff: unexport various identifiers ed90c6d20 * gopls/internal/lsp/source: test references bug on struct{p.T} 827f5aa2c * go/ssa/interp: implement min/max builtins a12e1a6ae * gopls/internal/lsp/cache: remove nested module warning 9c97539a2 * gopls/internal/lsp/cmd: add a stats -anon flag to show anonymous data d44a094d8 * gopls/internal/lsp: bundle certain quick-fixes with their diagnostic e106694df * gopls/internal/lsp/filecache: reenable memory cache layer 5dc3f7433 * gopls/internal/lsp/cmd: simplify connection type 7e146a6c6 * gopls/internal/regtest/workspace: unskip duplicate modules test 1e6066861 * gopls/doc: Fix broken links 5ce721db5 * gopls/internal/lsp/cmd: remove vestiges of debugging golang/go#59475 7a03febee * gopls/internal/regtest/misc: update and unskip TestHoverIntLiteral a70f2bc21 * gopls/internal/regtest/misc: unskip TestMajorOptionsChange 6997d196f * gopls/internal/lsp/cache: fix crash in Session.updateViewLocked ec543c5a2 * gopls/internal/regtest/misc: update some unilaterally skipped tests a12ee94f7 * gopls: deprecate support for Go 1.16 and 1.17, update warnings 5ff5cbb00 * gopls/internal/lsp/cache: limit module scan to 100K files e6fd7f4c0 * gopls/internal/lsp/regtest: delete TestWatchReplaceTargets 9ca66ba88 * gopls/internal/lsp/source/completion: (unimported) add placeholders edbfdbebf * gopls: add a new "subdirWatchPatterns" setting 3a5dbf351 * internal/typesinternal: remove NewObjectpathFunc 3c0255176 * present: reformat doc comment for lack of inline code 07293620c * go/ssa: TestStdlib: disable check that function names are distinct d4e66bd9a * go/ssa: use core type for field accesses 738ea2bdc * gopls/internal/lsp: split file-watching glob patterns 2ec4299f3 * gopls/internal/lsp/cache: only delete the most relevant mod tidy handle 43b02eab0 * internal/lsp/filecache: eliminate 'kind' directories 5919673c9 * gopls/internal/lsp: keep track of overlays on the files map a5ef6c3eb * gopls/internal/lsp/mod: optimizations for mod tidy diagnostics d7f4359f8 * gopls/internal/lsp/filecache: touch only files older than 1h 2eb726b88 * gopls/internal/regtest/bench: add a benchmark for diagnosing saves b742cb9a5 * gopls/internal/lsp/cache: tweak error message 4d66324ee * gopls/internal/lsp/filecache: delayed tweaks from code review e46df400e * gopls/internal/lsp/debug: remove memory monitoring 3df69b827 * gopls/internal/lsp/filecache: avoid flock a069704d0 * gopls/internal/lsp/cache: fix race in adhoc reloading 3d53c2d20 * go/analysis/passes/slog: fix Group kv offset 8b4b27bce * cover: eliminate an unnecessary fsync in TestParseProfiles 242e5ed73 * go/ssa: fix typo in package docs 651d951bb * gopls/internal/lsp/debug: limit to 100 recent trace entries 743372f58 * go/ssa/interp: avoid hard-coding GOOS and GOARCH 522243a71 * gopls/internal/lsp/cache: fail workspace load on context cancellation a0593829f * gopls/internal/lsp/cache: unexport ValidBuildConfiguration e5c8d4db7 * go/ssa: use core type for composite literal addresses f4e8a711a * go/ssa: use core types for array length 3b25dbddd * gopls/internal/lsp/filecache: front with a 100MB in-memory LRU cache e7048d518 * gopls/internal/lsp/lru: extract LRU logic to a standalone package 8c0fcd2c6 * go/ssa/interp: use the actual GOOS and GOARCH to interpret tests 19d700c67 * gopls/internal/lsp/filecache: limit Get parallelism too 9dcd3d5dc * go/ssa: consolidate use of underlying pointer 7f203f0c3 * gopls/internal/lsp: add quick-fixes to manage the go.work file a13793e31 * internal/gcimporter: improve error handling 12a0517ad * gopls/internal/lsp/cache: call filecache.Set asynchronously 5eb1eb932 * gopls/internal/lsp/filecache: limit parallelism in Set 35fe77a6b * gopls: improve diagnostics for orphaned files 1c9fe3f82 * go/gcexportdata: drop support for the ancient binary format ad74ff634
1 parent a4d6190 commit a7a7131

File tree

25 files changed

+2018
-958
lines changed

25 files changed

+2018
-958
lines changed

cmd/govim/gopls_server.go

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,13 @@ func (l loggingGoplsServer) Completion(ctxt context.Context, params *protocol.Co
133133
return res, err
134134
}
135135

136+
func (l loggingGoplsServer) InlineCompletion(ctxt context.Context, params *protocol.InlineCompletionParams) (*protocol.Or_Result_textDocument_inlineCompletion, error) {
137+
l.Logf("gopls.Completion() call; params:\n%v", pretty.Sprint(params))
138+
res, err := l.u.InlineCompletion(ctxt, params)
139+
l.Logf("gopls.Completion() return; err: %v; res:\n%v", err, pretty.Sprint(res))
140+
return res, err
141+
}
142+
136143
func (l loggingGoplsServer) Resolve(ctxt context.Context, params *protocol.InlayHint) (*protocol.InlayHint, error) {
137144
l.Logf("gopls.Resolve() call; params:\n%v", pretty.Sprint(params))
138145
res, err := l.u.Resolve(ctxt, params)
@@ -259,6 +266,13 @@ func (l loggingGoplsServer) RangeFormatting(ctxt context.Context, params *protoc
259266
return res, err
260267
}
261268

269+
func (l loggingGoplsServer) RangesFormatting(ctxt context.Context, params *protocol.DocumentRangesFormattingParams) ([]protocol.TextEdit, error) {
270+
l.Logf("gopls.RangeFormatting() call; params:\n%v", pretty.Sprint(params))
271+
res, err := l.u.RangesFormatting(ctxt, params)
272+
l.Logf("gopls.RangeFormatting() return; err: %v; res\n%v", err, pretty.Sprint(res))
273+
return res, err
274+
}
275+
262276
func (l loggingGoplsServer) OnTypeFormatting(ctxt context.Context, params *protocol.DocumentOnTypeFormattingParams) ([]protocol.TextEdit, error) {
263277
l.Logf("gopls.OnTypeFormatting() call; params:\n%v", pretty.Sprint(params))
264278
res, err := l.u.OnTypeFormatting(ctxt, params)

cmd/govim/internal/golang_org_x_tools/fastwalk/fastwalk.go

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cmd/govim/internal/golang_org_x_tools/gcimporter/iexport.go

Lines changed: 117 additions & 31 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)