forked from andreikop/qutepart-cpp
-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is neededquestionFurther information is requestedFurther information is requested
Description
The code has a function to ask for completions.
qutepart-cpp/include/qutepart/qutepart.h
Line 370 in 76a8479
| inline void setCompletionCallback(CompletionCallback callback) { |
And specially here, which actually blocks the main thread:
Lines 990 to 995 in 76a8479
| auto completions = completionCallback_(currentWord); | |
| if (!completions.isEmpty()) { | |
| completer_->setCustomCompletions(completions); | |
| } | |
| } | |
| completer_->invokeCompletionIfAvailable(false); |
However, this API is synchroneous and blocking. While working with a language server we will need an async version. Maybe using a QFuture. Maybe still using a callback. Need to research how this API works before this is decided.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is neededquestionFurther information is requestedFurther information is requested