Skip to content

Commit

Permalink
Fix for globpath error
Browse files Browse the repository at this point in the history
  • Loading branch information
Shougo committed Mar 6, 2024
1 parent 1012237 commit d37dcaa
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 16 deletions.
6 changes: 3 additions & 3 deletions denops/@ddu-sources/ddc.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Context, Item } from "https://deno.land/x/ddu_vim@v3.10.2/types.ts";
import { BaseSource } from "https://deno.land/x/ddu_vim@v3.10.2/base/source.ts";
import { Denops, vars } from "https://deno.land/x/ddu_vim@v3.10.2/deps.ts";
import { Context, Item } from "https://deno.land/x/ddu_vim@v3.10.3/types.ts";
import { BaseSource } from "https://deno.land/x/ddu_vim@v3.10.3/base/source.ts";
import { Denops, vars } from "https://deno.land/x/ddu_vim@v3.10.3/deps.ts";
import { DdcItem } from "../ddc/types.ts";

type Params = Record<string, never>;
Expand Down
24 changes: 12 additions & 12 deletions denops/ddc/deps.ts
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
export type { Denops } from "https://deno.land/x/denops_std@v6.2.0/mod.ts";
export type { Denops } from "https://deno.land/x/denops_std@v6.3.0/mod.ts";
export {
echo,
execute,
} from "https://deno.land/x/denops_std@v6.2.0/helper/mod.ts";
} from "https://deno.land/x/denops_std@v6.3.0/helper/mod.ts";
export {
batch,
collect,
} from "https://deno.land/x/denops_std@v6.2.0/batch/mod.ts";
export * as op from "https://deno.land/x/denops_std@v6.2.0/option/mod.ts";
export * as vimOp from "https://deno.land/x/denops_std@v6.2.0/option/vim/mod.ts";
export * as fn from "https://deno.land/x/denops_std@v6.2.0/function/mod.ts";
export * as vars from "https://deno.land/x/denops_std@v6.2.0/variable/mod.ts";
export * as autocmd from "https://deno.land/x/denops_std@v6.2.0/autocmd/mod.ts";
export * as base64 from "https://deno.land/std@0.218.0/encoding/base64.ts";
} from "https://deno.land/x/denops_std@v6.3.0/batch/mod.ts";
export * as op from "https://deno.land/x/denops_std@v6.3.0/option/mod.ts";
export * as vimOp from "https://deno.land/x/denops_std@v6.3.0/option/vim/mod.ts";
export * as fn from "https://deno.land/x/denops_std@v6.3.0/function/mod.ts";
export * as vars from "https://deno.land/x/denops_std@v6.3.0/variable/mod.ts";
export * as autocmd from "https://deno.land/x/denops_std@v6.3.0/autocmd/mod.ts";
export * as base64 from "https://deno.land/std@0.218.2/encoding/base64.ts";
export {
assertEquals,
equal,
} from "https://deno.land/std@0.218.0/assert/mod.ts";
} from "https://deno.land/std@0.218.2/assert/mod.ts";
export {
basename,
parse,
toFileUrl,
} from "https://deno.land/std@0.218.0/path/mod.ts";
} from "https://deno.land/std@0.218.2/path/mod.ts";
export {
deadline,
DeadlineError,
} from "https://deno.land/std@0.218.0/async/mod.ts";
} from "https://deno.land/std@0.218.2/async/mod.ts";
export { TimeoutError } from "https://deno.land/x/msgpack_rpc@v4.0.1/response_waiter.ts";
export { spy } from "https://deno.land/x/mock@0.15.2/mock.ts";
export { ensure, is } from "https://deno.land/x/unknownutil@v3.16.3/mod.ts";
Expand Down
6 changes: 5 additions & 1 deletion denops/ddc/loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,14 @@ export class Loader {
) {
const runtimepath = await op.runtimepath.getGlobal(denops);
if (runtimepath !== this.#prevRuntimepath) {
this.#cachedPaths = await globpath(
const cached = await globpath(
denops,
"denops/@ddc-*s",
);
// NOTE: glob may be invalid.
if (Object.keys(cached).length > 0) {
this.#cachedPaths = cached;
}
this.#prevRuntimepath = runtimepath;
}

Expand Down

0 comments on commit d37dcaa

Please sign in to comment.