Skip to content

Commit 4d576bc

Browse files
committed
Catch up with the latest ddc api
1 parent 2572935 commit 4d576bc

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
import {
22
BaseSource,
3-
Candidate,
4-
DdcCompleteItems,
5-
} from "https://deno.land/x/ddc_vim@v1.4.0/types.ts#^";
3+
Item,
4+
DdcGatherItems,
5+
} from "https://deno.land/x/ddc_vim@v2.0.0/types.ts#^";
66

77
import {
8-
GatherCandidatesArguments,
9-
} from "https://deno.land/x/ddc_vim@v1.4.0/base/source.ts#^";
8+
GatherArguments,
9+
} from "https://deno.land/x/ddc_vim@v2.0.0/base/source.ts#^";
1010

1111
// deno-lint-ignore ban-types
1212
type Params = {};
1313

1414
export class Source extends BaseSource<Params> {
1515
private counter = 0;
16-
async gatherCandidates(
17-
args: GatherCandidatesArguments<Params>,
18-
): Promise<DdcCompleteItems> {
16+
async gather(
17+
args: GatherArguments<Params>,
18+
): Promise<DdcGatherItems> {
1919
this.counter = (this.counter + 1) % 100;
2020

2121
const lspservers: string[] = await args.denops.call(
@@ -30,7 +30,7 @@ export class Source extends BaseSource<Params> {
3030

3131
const [payload] = await Promise.all([
3232
args.onCallback(id) as Promise<{
33-
items: Candidate[];
33+
items: Item[];
3434
isIncomplete: boolean;
3535
}>,
3636
args.denops.call("ddc_vim_lsp#request", lspservers[0], id),

0 commit comments

Comments
 (0)