File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change 11import {
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
77import {
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
1212type Params = { } ;
1313
1414export 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 ) ,
You can’t perform that action at this time.
0 commit comments