-
Notifications
You must be signed in to change notification settings - Fork 98
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
Async CompletionItemProvider #124
Comments
The problem is that you can't await a Task in the delegate because it isn't a matching return type. The delegate for the completion provider is (CompletionList)
So you will not be able to await any asynchronous calls in the delegate method. The solution would be for the author to modify the CompletionItemProvider to have a ...
|
Here is a temporary solution. This is a CompletionItemProviderAsync to use instead...
And you can register it with...
And you can AWAIT all you want in the delegate method :) |
Hi @DJSures , thank you so much for the help! |
Hi, thank you for this awesome project.
How can I register an async CompletionItemProvider in order to be able to
await editor.GetValue()
?The idea is to get the editor value, parse it and then calculate the suggestions to be presented to the User, but how to do it on a Blazor Server since GetValue() needs to be awaited and editor.GetValue().Result does not work? Follow the code I'm trying to use below:
Thanks,
Bruno.
The text was updated successfully, but these errors were encountered: