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

Allow source to indicate that refreshing is needed #801

Closed
blueyed opened this issue Jul 11, 2018 · 3 comments
Closed

Allow source to indicate that refreshing is needed #801

blueyed opened this issue Jul 11, 2018 · 3 comments

Comments

@blueyed
Copy link
Contributor

blueyed commented Jul 11, 2018

Currently when changing g:deoplete#sources#jedi#python_path deoplete-jedi would use a new environment when gather_candidates is called, but this might not happen when previous completions are being used.

Is it feasible to provide some API to make this possible?

It could also be a Vimscript function, that could then be wrapped by a command/function like DeopleteJediSetEnvironment.

@Shougo
Copy link
Owner

Shougo commented Jul 12, 2018

Why it is needed?
I don't understand.
deoplete-jedi should check the variable.

@Shougo
Copy link
Owner

Shougo commented Jul 12, 2018

If it is need, deoplete-jedi should use deoplete#send_event().

@Shougo Shougo closed this as completed Jul 12, 2018
@blueyed
Copy link
Contributor Author

blueyed commented Jul 12, 2018

deoplete-jedi is not called (its gather_candidates).
It is a corner case until completions are refreshed (i.e. deoplete-jedi's gather_candidates is called again).

I do not know about the internals (prev completions) that much, it might be mainly due to bugs (e.g. #800) that it takes longer than expected.

If it is need, deoplete-jedi should use deoplete#send_event().

Ok, good reference.

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

No branches or pull requests

2 participants