Bump golang.org/x/tools from 0.1.10 to 0.32.0
Type: Pull Request
State: Closed
Association: Contributor
Comments: 2
(7 months ago)
(6 months ago)
(6 months ago)
pr/release/none-required pr/dependabot/gomod
Bumps golang.org/x/tools from 0.1.10 to 0.32.0.
Release notes
Sourced from golang.org/x/tools's releases.
gopls/v0.18.1
This release:
- fixes two bugs in the
minmaxalgorithm of the modernize analyzer that caused it to generate incorrect fixes; and- restores the experimental
hoverKind=structuredgolang/go#71879gopls/v0.18.0
This release contains some small changes to gopls behavior, bug fixes, and new features.
Notably, the new
modernizeanalyzer reports hint diagnostics suggesting ways that Go code could be updated to take advantage of new Go language features and standard library APIs. If hint level diagnostics are noisy in your editor, and you find these diagnostics disruptive, you can disable these analyses by setting:"analyses": { "modernize": false }Configuration Changes
The experimental
Structuredvalue for thehoverKindoption is no longer supported.The
gc_detailscode lens has been deleted. (It was previously disabled by default.) This functionality is now available through thetoggleCompilerOptDetailscode action, described below, as code actions are better supported than code lenses across a range of clients.VS Code's special "Go: Toggle GC details" command continues to work.
The experimental
semanticTokenTypesandsemanticTokenModifiersoptions allow selectively disabling certain types of tokens or token modifiers intextDocument/semanticTokensresponses.These options supersede the
noSemanticStringandnoSemanticTokenNumberoptions, which are now deprecated. Users can instead set"semanticTokenTypes": {"string": false, "number": false}to achieve the same result. For now, gopls still honorsnoSemanticTokenStringandnoSemanticToken, but will stop supporting them in a future release.The new
workspaceFilesoption allows configuring glob patterns matching files that define the logical build of the workspace. This option is only needed in environments that use a custom golang.org/x/tools/go/packages driver.New features
"{Show,Hide} compiler optimization details" code action
This code action, accessible through the "Source Action" menu in VS Code, toggles a per-directory flag that causes Go compiler optimization details to be reported as diagnostics. For example, it indicates which variables escape to the heap, and which array accesses require bounds checks.
New
modernizeanalyzerGopls now reports when code could be simplified or clarified by using more modern features of Go, and provides a quick fix to apply the change.
For example, a conditional assignment using an if/else statement may be replaced by a call to the
minormaxbuilt-in functions added in Go 1.18.Use this command to apply modernization fixes en masse:
$ go run golang.org/x/tools/gopls/internal/analysis/modernize/cmd/modernize@latest -fix -test ./...We are aware of a number of minor bugs in the analyzer's fixes. For example, it may sometimes cause a variable or an import to become unused, or may delete comments within a
fororifblock that is simplified to a library call. The known bugs are low-risk and easy to fix, as they result in a broken build or are obvious during a code review; none cause latent behavior changes. Please report any additional problems you encounter.
... (truncated)
Commits
456962ego.mod: update golang.org/x dependencies5916e3cinternal/tokeninternal: AddExistingFiles: tweaks for proposal9a1fbbdinternal/typesinternal: change Used to UsedIdente73cd5agopls/internal/golang: implement dynamicFuncCallType with typeutil.ClassifyCall11a9b3fgopls/internal/server: fix event labels after the big rename3e7f74dgo/types/typeutil: used doesn't need Info.Selectionsb97074binternal/gofix: fix URLse850fe1gopls/internal/golang: CodeAction: place gopls doc as the last actionb948addinternal/gofix: move from gopls/internal/analysis/gofixb437effgo/types/typeutil: implement Callee and StaticCallee with Used- Additional commits viewable in compare view
You can trigger a rebase of this PR by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Pull Request Statistics
0
0
+0
-0
Technical Details
| ID: | 985371 |
| UUID: | 2992882483 |
| Node ID: | PR_kwDOG92iBM6SemTe |
| Host: | GitHub |
| Repository: | weizhoublue/github-action-test |