diff --git a/denops/@ddc-sources/lsp.ts b/denops/@ddc-sources/lsp.ts index 460b910..20a07a0 100644 --- a/denops/@ddc-sources/lsp.ts +++ b/denops/@ddc-sources/lsp.ts @@ -15,7 +15,6 @@ import { OffsetEncoding, parseSnippet, } from "../ddc-source-lsp/deps/lsp.ts"; -import { DeadlineError } from "../ddc-source-lsp/deps/std.ts"; import { is, u } from "../ddc-source-lsp/deps/unknownutil.ts"; import { CompletionItem } from "../ddc-source-lsp/completion_item.ts"; import { request } from "../ddc-source-lsp/request.ts"; @@ -172,7 +171,7 @@ export class Source extends BaseSource { }, ) as Result; } catch (e) { - if (!(e instanceof DeadlineError)) { + if (!(e instanceof DOMException)) { throw e; } } diff --git a/denops/ddc-source-lsp/deps/ddc.ts b/denops/ddc-source-lsp/deps/ddc.ts index 0745edc..4422c29 100644 --- a/denops/ddc-source-lsp/deps/ddc.ts +++ b/denops/ddc-source-lsp/deps/ddc.ts @@ -5,12 +5,12 @@ export { type Item, type Previewer, type PumHighlight, -} from "https://deno.land/x/ddc_vim@v5.0.0/types.ts"; +} from "https://deno.land/x/ddc_vim@v5.0.1/types.ts"; export type { GatherArguments, GetPreviewerArguments, OnCompleteDoneArguments, -} from "https://deno.land/x/ddc_vim@v5.0.0/base/source.ts"; +} from "https://deno.land/x/ddc_vim@v5.0.1/base/source.ts"; export type { FilterArguments, -} from "https://deno.land/x/ddc_vim@v5.0.0/base/filter.ts"; +} from "https://deno.land/x/ddc_vim@v5.0.1/base/filter.ts"; diff --git a/denops/ddc-source-lsp/deps/denops.ts b/denops/ddc-source-lsp/deps/denops.ts index 1845b45..3d5babe 100644 --- a/denops/ddc-source-lsp/deps/denops.ts +++ b/denops/ddc-source-lsp/deps/denops.ts @@ -1,11 +1,11 @@ -export type { Denops } from "https://deno.land/x/denops_std@v6.5.0/mod.ts"; -export * as fn from "https://deno.land/x/denops_std@v6.5.0/function/mod.ts"; -export * as nvim from "https://deno.land/x/denops_std@v6.5.0/function/nvim/mod.ts"; -export * as op from "https://deno.land/x/denops_std@v6.5.0/option/mod.ts"; +export type { Denops } from "https://deno.land/x/denops_std@v6.5.1/mod.ts"; +export * as fn from "https://deno.land/x/denops_std@v6.5.1/function/mod.ts"; +export * as nvim from "https://deno.land/x/denops_std@v6.5.1/function/nvim/mod.ts"; +export * as op from "https://deno.land/x/denops_std@v6.5.1/option/mod.ts"; export { register, unregister, -} from "https://deno.land/x/denops_std@v6.5.0/lambda/mod.ts"; -export { batch } from "https://deno.land/x/denops_std@v6.5.0/batch/mod.ts"; +} from "https://deno.land/x/denops_std@v6.5.1/lambda/mod.ts"; +export { batch } from "https://deno.land/x/denops_std@v6.5.1/batch/mod.ts"; export { test } from "https://deno.land/x/denops_test@v1.8.0/mod.ts"; diff --git a/denops/ddc-source-lsp/deps/lsp.ts b/denops/ddc-source-lsp/deps/lsp.ts index 8973b3e..d4d8983 100644 --- a/denops/ddc-source-lsp/deps/lsp.ts +++ b/denops/ddc-source-lsp/deps/lsp.ts @@ -9,6 +9,6 @@ export { parseSnippet, toUtf16Index, uriFromBufnr, -} from "https://deno.land/x/denops_lsputil@v0.9.4/mod.ts"; +} from "https://deno.land/x/denops_lsputil@v0.9.5/mod.ts"; export * as LSP from "npm:vscode-languageserver-protocol@3.17.5"; diff --git a/denops/ddc-source-lsp/deps/std.ts b/denops/ddc-source-lsp/deps/std.ts index 1dcd537..dfbc8d3 100644 --- a/denops/ddc-source-lsp/deps/std.ts +++ b/denops/ddc-source-lsp/deps/std.ts @@ -1,2 +1,2 @@ -export { deadline, DeadlineError } from "jsr:@std/async@0.224.1"; -export { assertEquals } from "jsr:@std/assert@0.225.3"; +export { deadline } from "jsr:@std/async@1.0.0"; +export { assertEquals } from "jsr:@std/assert@1.0.0"; diff --git a/denops/ddc-source-lsp/deps/unknownutil.ts b/denops/ddc-source-lsp/deps/unknownutil.ts index 00d828b..7168886 100644 --- a/denops/ddc-source-lsp/deps/unknownutil.ts +++ b/denops/ddc-source-lsp/deps/unknownutil.ts @@ -1,2 +1,2 @@ export * as u from "jsr:@core/unknownutil@3.18.1"; -export { is } from "jsr:@core/unknownutil@3.18.0"; +export { is } from "jsr:@core/unknownutil@3.18.1"; diff --git a/denops/ddc-source-lsp/request.ts b/denops/ddc-source-lsp/request.ts index 2914981..5ce64de 100644 --- a/denops/ddc-source-lsp/request.ts +++ b/denops/ddc-source-lsp/request.ts @@ -1,5 +1,5 @@ import { Denops, fn, register } from "./deps/denops.ts"; -import { deadline, DeadlineError } from "./deps/std.ts"; +import { deadline } from "./deps/std.ts"; import { uriFromBufnr } from "./deps/lsp.ts"; import { is, u } from "./deps/unknownutil.ts"; import { Params } from "../@ddc-sources/lsp.ts"; @@ -68,7 +68,7 @@ export async function request( ); return result; } catch (e) { - if (e instanceof DeadlineError) { + if (e instanceof DOMException) { throw new Error(`No response from server ${opts.client.id}`); } else { throw new Error(`Unsupported method: ${method}`);