Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deps: upgrade x/tools and gopls to 77f530d86f9a #913

Merged
merged 1 commit into from
Jul 29, 2020

Conversation

leitzler
Copy link
Member

@leitzler leitzler commented Jul 26, 2020

* internal/lsp: handle deletion of file content 77f530d8
* internal/lsp: move fillstruct suggested fixes out of analysis 4025ed84
* internal/lsp: support extract function 6d307edf
* internal/lsp: split only on the first = for Go environment variables 9cbb971a
* internal/lsp: support go1.12 cf97b7f4
* internal/lsp: don't re-run `go env` for every call to WriteEnv e6549b8d

The update also updates the fillstruct logic according to recent changes
in gopls where it now return Commands instead of direct edits.

As gopls went from edits to commands, it will not be possible to
fill more than one struct per fillstruct call.

This also adds support for incoming LSP ApplyEdit calls, to be able
to use LSP ExecuteCommand.

@leitzler leitzler force-pushed the deps_tools_77f530d86f9a branch from 25ee4b6 to 339e890 Compare July 26, 2020 21:50
Copy link
Member

@myitcv myitcv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To complement our Slack discussion, added some comments inline

cmd/govim/fillstruct.go Show resolved Hide resolved
cmd/govim/fillstruct.go Outdated Show resolved Hide resolved
cmd/govim/fillstruct.go Show resolved Hide resolved
cmd/govim/fillstruct.go Outdated Show resolved Hide resolved
cmd/govim/fillstruct.go Show resolved Hide resolved
cmd/govim/gopls_client.go Show resolved Hide resolved
cmd/govim/gopls_client.go Outdated Show resolved Hide resolved
@myitcv myitcv closed this Jul 27, 2020
@myitcv myitcv reopened this Jul 27, 2020
@myitcv myitcv changed the base branch from master to main July 27, 2020 06:00
@leitzler leitzler force-pushed the deps_tools_77f530d86f9a branch 2 times, most recently from 115a084 to b3e1663 Compare July 28, 2020 10:17
* internal/lsp: handle deletion of file content 77f530d8
* internal/lsp: move fillstruct suggested fixes out of analysis 4025ed84
* internal/lsp: support extract function 6d307edf
* internal/lsp: split only on the first = for Go environment variables 9cbb971a
* internal/lsp: support go1.12 cf97b7f4
* internal/lsp: don't re-run `go env` for every call to WriteEnv e6549b8d

The update also updates the fillstruct logic according to recent changes
in gopls where it now return Commands instead of direct edits.

As gopls went from edits to commands, it will not be possible to
fill more than one struct per fillstruct call.

This also adds support for incoming LSP ApplyEdit calls, to be able
to use LSP ExecuteCommand.
@leitzler leitzler force-pushed the deps_tools_77f530d86f9a branch from b3e1663 to 7d570d4 Compare July 28, 2020 19:24
@leitzler leitzler changed the title Deps tools 77f530d86f9a deps: upgrade x/tools and gopls to 77f530d86f9a Jul 28, 2020
@leitzler leitzler requested a review from myitcv July 28, 2020 19:26
Copy link
Member

@myitcv myitcv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - great stuff, thank you!

@leitzler leitzler merged commit c6e168a into main Jul 29, 2020
@leitzler leitzler deleted the deps_tools_77f530d86f9a branch July 29, 2020 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants