Skip to content

Commit

Permalink
Execute :helptags when docDir is not empty
Browse files Browse the repository at this point in the history
  • Loading branch information
Shougo committed Oct 17, 2023
1 parent 587313a commit bc20210
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions denops/dpp/dpp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -275,15 +275,18 @@ export class Dpp {
}
}

// Execute :helptags
try {
await denops.cmd(`silent helptags ${docDir}`);
} catch (e: unknown) {
await errorException(
denops,
e,
`:helptags failed`,
);
// Execute :helptags when docDir is not empty
for await (const _ of Deno.readDir(docDir)) {
try {
await denops.cmd(`silent helptags ${docDir}`);
break;
} catch (e: unknown) {
await errorException(
denops,
e,
`:helptags failed`,
);
}
}

// Merge plugin files
Expand Down

0 comments on commit bc20210

Please sign in to comment.