Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Make Provider / Suggestion API Async - #99

Closed
joefitzgerald wants to merge 3 commits into
masterfrom
feature/async-provider-suggestion-api
Closed

joefitzgerald wants to merge 3 commits into
masterfrom
feature/async-provider-suggestion-api

Conversation

@joefitzgerald

Copy link
Copy Markdown
Contributor

🚨 WIP 🚨

This PR will make the autocomplete-plus provider + suggestion API asynchronous.

Status: Not Ready For Merge

@AmandaCameron

Copy link
Copy Markdown

Out of curiosity, will this also allow async loading of suggestions from providers? I've banged out a replica of autocomplete-clang that uses the autocomplete-plus provider system, but I've got to do some nasty hacks to be able to keep the GUI responsive and still load the results.

Namely, I do a "loading..." suggestion, then I kick off the clang program, and then return the parsed results on the next involcation. This is rather ugly and doesn't provide the UX I'd like to have to release it.

@joefitzgerald

Copy link
Copy Markdown
Contributor Author

Yes, the intent is to allow providers to return asynchronously, and display results asynchronously. It's driven by my need to shell out to gocode for my go-plus package, which needs to occur asynchronously because I'm using process.spawn.

@AmandaCameron

Copy link
Copy Markdown

Awesome, look forward to seeing this progress. :)

- Providers don't need access to the EditorView; just the Editor
- Establish versioning of the provider spec to allow for future feature enhancement
@rockymadden

Copy link
Copy Markdown

@joefitzgerald

Copy link
Copy Markdown
Contributor Author

Hey @rockymadden - it's been a while! 😄

Yep, aware of that but using a different approach. Sadly, the author didn't commit everything prior to making the changes so it's a bit opaque as to what changed (I could always break out a diff tool).

@rockymadden

Copy link
Copy Markdown

@joefitzgerald No doubt, but I still see you pop up all over. Always a pleasure when that happens. 😄

Gotcha about the project. I didn't delve too deeply into the code, but I did want to make sure that you were aware just in case it was of any use to this endeavour (which I am looking forward to).

@derekperkins

Copy link
Copy Markdown

Any update on this status?

@tdegrunt

Copy link
Copy Markdown

Can't wait for this to work :)

@derekperkins

Copy link
Copy Markdown

Is there a reason for this to not be merged when the build is passing?

@joeferraro

Copy link
Copy Markdown

it's not fully implemented yet, based on my testing @derekperkins (although I could be testing it incorrectly)

@derekperkins

Copy link
Copy Markdown

That was a record response time @joeferraro. Thanks for the update!

@joeferraro

Copy link
Copy Markdown

@derekperkins hehe, I'm as anxious as you are for this functionality 👍

@joefitzgerald

Copy link
Copy Markdown
Contributor Author

Correct, this is not fully implemented yet. I am very acutely aware of how much this is wanted, and I want it too.

@joeferraro

Copy link
Copy Markdown

no worries, @joefitzgerald, thanks for the effort on this.

@tdegrunt

Copy link
Copy Markdown

@ptomasroos

Copy link
Copy Markdown

Any news on this?

@joefitzgerald

Copy link
Copy Markdown
Contributor Author

When this re-starts, I'll make another PR or post the location for it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants