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

lsp: implement fillstruct #3018

Merged
merged 3 commits into from
Sep 21, 2020
Merged

lsp: implement fillstruct #3018

merged 3 commits into from
Sep 21, 2020

Conversation

bhcleek
Copy link
Collaborator

@bhcleek bhcleek commented Sep 20, 2020

lsp: refactor applying document changes

Create and call a new function that applies the documentChanges property
of a WorkspaceEdit message.

fillstruct: add an option to satisfy fill struct with gopls

Add a new option, g:go_fill_struct_mode, to allow gopls to be used to
satisfy :GoFillStruct

Fix a small bug with debugging gopls; make sure the timer starts when
the queue's first item is added instead of starting only when a second
message is added to the queue.

Closes #2940

fillstruct: add tests for gopls mode

Create and call a new function that applies the documentChanges property
of a WorkspaceEdit message.
Add a new option, g:go_fill_struct_mode, to allow gopls to be used to
satisfy :GoFillStruct

Fix a small bug with debugging gopls; make sure the timer starts when
the queue's first item is added instead of starting only when a second
message is added to the queue.

Closes fatih#2940
@bhcleek bhcleek marked this pull request as ready for review September 21, 2020 03:03
@bhcleek bhcleek merged commit c871197 into fatih:master Sep 21, 2020
@bhcleek bhcleek deleted the lsp/fillstruct branch September 21, 2020 03:03
bhcleek added a commit that referenced this pull request Sep 21, 2020
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.

FillStruct using gopls (feature request)
1 participant