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

Completions are always collected twice, if there is a prefix #192

Closed
FichteFoll opened this issue Dec 11, 2015 · 1 comment
Closed

Completions are always collected twice, if there is a prefix #192

FichteFoll opened this issue Dec 11, 2015 · 1 comment

Comments

@FichteFoll
Copy link

With the following plugin, I revealed that the completions are always collected two times and you can also observe the completion popup showing after the first time very briefly.

import time, sublime, sublime_plugin

class Listener(sublime_plugin.EventListener):
    def on_query_completions(self, view, prefix, locations):
        time.sleep(2)
        print("queried completions")
        return list("abcdefg")

When you trigger the completions popup on the new line, this is behaving as expected (one line of "queried completions", 2s wait tim). However, if the popup is opend when there is a prefix (e.g. when typing t), the panel takes 2s to appear briefly (prints to console) and then another 2s to finally appear for real (prints again).

I determined this to be SJedi's fault because it only happens in Python files and when SJedi is not disabled.

Possibly related to #191.

@srusskih
Copy link
Owner

have updated completion behavior in #244

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