Browse Source

Merge pull request #20 from Shougo/deps

main
KUDO Shunsuke 1 year ago
committed by GitHub
parent
commit
064f34a824
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 12
      denops/@ddc-sources/vim-lsp.ts

12
denops/@ddc-sources/vim-lsp.ts

@ -2,11 +2,11 @@ import {
BaseSource, BaseSource,
DdcGatherItems, DdcGatherItems,
Item as DdcItem, Item as DdcItem,
} from "https://deno.land/x/ddc_vim@v3.4.1/types.ts"; } from "https://deno.land/x/ddc_vim@v4.1.0/types.ts";
import { import {
GatherArguments, GatherArguments,
} from "https://deno.land/x/ddc_vim@v3.4.1/base/source.ts"; } from "https://deno.land/x/ddc_vim@v4.1.0/base/source.ts";
type Params = { type Params = {
ignoreCompleteProvider: boolean; ignoreCompleteProvider: boolean;
@ -22,8 +22,7 @@ export class Source extends BaseSource<Params> {
const lspservers: string[] = await args.denops.call( const lspservers: string[] = await args.denops.call(
"ddc_vim_lsp#get_completion_servers", "ddc_vim_lsp#get_completion_servers",
args.sourceParams.ignoreCompleteProvider, args.sourceParams.ignoreCompleteProvider,
// deno-lint-ignore no-explicit-any ) as string[];
) as any;
if (lspservers.length === 0) { if (lspservers.length === 0) {
return []; return [];
} }
@ -37,7 +36,10 @@ export class Source extends BaseSource<Params> {
}>, }>,
args.denops.call("ddc_vim_lsp#request", lspservers[0], id), args.denops.call("ddc_vim_lsp#request", lspservers[0], id),
]); ]);
return { items: payload.items, isIncomplete: payload.isIncomplete }; return {
items: payload.items,
isIncomplete: payload.isIncomplete,
};
} }
override params(): Params { override params(): Params {

Loading…
Cancel
Save