gwil
(Sam Gwilym)
October 18, 2023, 8:47pm
1
A conformant TaskAssistant must have a provideTasks
method which returns Task[]
(synchronously).
I’d like to get available tasks from the LSP, using client.sendRequest
. But this method is asynchronous, and therefore can’t be used in provideTasks
.
This could be good for a few other things too, like retrieving available tasks from a server.
logan
(Logan Collins)
October 19, 2023, 11:07pm
2
If you return a Promise
object from this method, it should wait for it to resolve.
gwil
(Sam Gwilym)
October 20, 2023, 12:43pm
3
That’s a nice surprise, thanks! Is there a way to contribute to the Nova API docs so that I could help update docs like these (AssistantsRegistry - Nova )?
2 Likes
the3emran
(Emran Ramezan)
October 21, 2023, 12:18pm
4
Is there a way to contribute to the Nova API docs
This would be actually, great. I found quite a few dead links as well that could be rectified possibly that way!
logan
(Logan Collins)
October 23, 2023, 6:26pm
5
There isn’t, as our docs are not stored in an open-source repository, but if you find any issues, please do list them so we can rectify it.
gwil
(Sam Gwilym)
October 24, 2023, 9:06am
6
Sure! My first suggestion would be:
The provideTasks
method of the assistant should return a promise of an array of Task objects.