From 61e31930d84e54ff496c6cf26723778ee9dd7ca0 Mon Sep 17 00:00:00 2001 From: Shougo Matsushita Date: Fri, 10 May 2024 19:02:27 +0900 Subject: [PATCH] Use await for expandItems --- denops/ddu/_mod.js | 2 ++ denops/ddu/app.ts | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 denops/ddu/_mod.js diff --git a/denops/ddu/_mod.js b/denops/ddu/_mod.js new file mode 100644 index 0000000..30f5491 --- /dev/null +++ b/denops/ddu/_mod.js @@ -0,0 +1,2 @@ +// NOTE: It is dummy module. +export const mods = {}; diff --git a/denops/ddu/app.ts b/denops/ddu/app.ts index f1885c9..0ede3f8 100644 --- a/denops/ddu/app.ts +++ b/denops/ddu/app.ts @@ -324,7 +324,7 @@ export function main(denops: Denops) { if (mode === "collapse") { await ddu.collapseItems(denops, items.map((item) => item.item)); } else if (mode === "expand") { - ddu.expandItems(denops, items); + await ddu.expandItems(denops, items); } }, async updateOptions(arg1: unknown, arg2: unknown): Promise {