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

Change LanguageClient#complete to not use runSync #1170

Draft
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

martskins
Copy link
Collaborator

This PR changes LanguageClient#complete to use a callback instead of LanguageClient#runSync to get the completion items so that a misbehaving server (one that does not reply or takes too long to reply) doesn't hang the editor for 60 seconds.

Fixes #1169

@martskins
Copy link
Collaborator Author

This has an issue with expanding completion item snippets. It doesn't work when you try to do that after <C-X><C-O>, trying to figure this out now.

@martskins martskins marked this pull request as draft December 9, 2020 23:19
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

1 participant