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

🐛 Fix denops#plugin#wait() #175

Merged
merged 3 commits into from
Feb 19, 2022
Merged

🐛 Fix denops#plugin#wait() #175

merged 3 commits into from
Feb 19, 2022

Conversation

lambdalisue
Copy link
Member

@lambdalisue lambdalisue commented Feb 19, 2022

Close #174

  • Add a timeout to prevent Vim from freezing forever (-1)
  • If the denops server is not ready yet, it will fail immediately (-2)
  • Return fail status so that developers can decide to continue (-3)

The best way to use denops#plugin#wait() is with early return like

if denops#plugin#wait('gin')
  return
endif
call denops#request('gin', 'status:command', [])

@lambdalisue lambdalisue changed the title 👍 Add timeout feature to denops#plugin#wait() 🐛 Fix denops#plugin#wait() Feb 19, 2022
- Add a timeout to prevent Vim from freezing forever (-1)
- If the denops server is not ready yet, it will fail immediately (-2)
- Return fail status so that developers can decide to continue (-3)
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.

Vim/Neovim freeze when denops#plugin#wait() is used prior to VimEnter
1 participant