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

add initial support for gopls #2163

Merged
merged 4 commits into from
Mar 12, 2019
Merged

add initial support for gopls #2163

merged 4 commits into from
Mar 12, 2019

Conversation

bhcleek
Copy link
Collaborator

@bhcleek bhcleek commented Mar 11, 2019

Add initial support for gopls. This PR adds the foundation for transitioning to use gopls and introduces a new option for g:go_def_mode, gopls.

lint before running tests
extract URI encoding function

Extract function to URI encode strings and add the decoding function,
too.

Use the new uri encoding function when reporting a GitHub issue.

changes. Lines starting

add gopls to tools
teach vim-go to get definition information from gopls

Fixes #2146

Extract function to URI encode strings and add the decoding function,
too.

Use the new uri encoding function when reporting a GitHub issue.

changes. Lines starting
@bhcleek bhcleek merged commit f74b4ee into fatih:master Mar 12, 2019
@bhcleek bhcleek deleted the lsp branch March 12, 2019 01:50
bhcleek added a commit that referenced this pull request Mar 12, 2019
if has_key(l:response, 'id') && has_key(self.handlers, l:response.id)
try
if has_key(l:response, 'error')
call go#util#EchoError(l:response.message)
Copy link

Choose a reason for hiding this comment

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

@bhcleek Should this be call go#util#EchoError(l:response.error)? I'm getting this when the response has error:

E716: Key not present in Dictionary: message)
E116: Invalid arguments for function go#util#EchoError

btw, thank you for adding the gopls support!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yes! I've updated master accordingly.

Copy link

Choose a reason for hiding this comment

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

Thank you!!

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.

None yet

2 participants