When executing a Source that takes a long time to retrieve items (e.g., fetching a large dataset over a network), the UI does not render anything until all items have been retrieved.
Is this the expected behavior?
function test(): Source<never> {
return defineSource(async function* (_denops) {
let id = 0;
while (true) {
yield {
id: id++,
value: "hoge",
}
await new Promise(resolve => setTimeout(resolve, 1000));
}
});
}
definePickerFromSource(
"test",
test,
{
matchers: [builtin.matcher.fzf],
actions: {
...myPathActions,
},
defaultAction: "cd",
},
);
I expect the items to be rendered every second.
When executing a Source that takes a long time to retrieve items (e.g., fetching a large dataset over a network), the UI does not render anything until all items have been retrieved.
Is this the expected behavior?
I expect the items to be rendered every second.