There was an error while loading. Please reload this page.
1 parent 7c0dc63 commit e6b9516Copy full SHA for e6b9516
1 file changed
denops/ddu/loader.ts
@@ -295,16 +295,14 @@ async function createPathCache(
295
denops: Denops,
296
runtimepath: string,
297
): Promise<Map<string, string>> {
298
- const extFileGlob = await globpath(
299
- denops,
300
- runtimepath,
301
- `${TYPE_DIR_PATTERN}/*.ts`,
302
- );
303
- const extDirEntryPointGlob = await globpath(
304
305
306
- `${TYPE_DIR_PATTERN}/*/${EXT_ENTRY_POINT_FILE}`,
307
+ const [extFileGlob, extDirEntryPointGlob] = await Promise.all([
+ globpath(denops, runtimepath, `${TYPE_DIR_PATTERN}/*.ts`),
+ globpath(
+ denops,
+ runtimepath,
+ `${TYPE_DIR_PATTERN}/*/${EXT_ENTRY_POINT_FILE}`,
+ ),
+ ]);
308
309
// Create key paths for both single-file and directory entry points.
310
// Prioritize the first occurrence key in keyPaths.
0 commit comments