File tree Expand file tree Collapse file tree 5 files changed +16
-14
lines changed Expand file tree Collapse file tree 5 files changed +16
-14
lines changed Original file line number Diff line number Diff line change 37
37
- os : ubuntu-latest
38
38
deno : v1.x
39
39
- os : ubuntu-latest
40
- deno : v1.13
40
+ deno : v1.14
41
41
- os : ubuntu-latest
42
42
deno : v1.14
43
43
- os : ubuntu-latest
Original file line number Diff line number Diff line change @@ -16,15 +16,15 @@ function! s:full_to_base_prefix(full, is_posix) abort
16
16
\ ), 1 , ' ' )
17
17
endfunction
18
18
19
+ " @param {string} input_line
19
20
" @param {boolean} is_posix
20
21
" @return {[
21
22
" string,
22
23
" string,
23
24
" string,
24
25
" ]}
25
- function ! ddc_file#internal#info (is_posix) abort
26
- let input_line = getline (' .' )[: col (' .' ) - 2 ]
27
- let input_file_full = s: line_to_file_full (input_line, a: is_posix )
26
+ function ! ddc_file#internal#info (input_line, is_posix) abort
27
+ let input_file_full = s: line_to_file_full (a: input_line , a: is_posix )
28
28
let input_file_base_prefix = s: full_to_base_prefix (input_file_full, a: is_posix )
29
29
let buf_path = expand (' %:p' )
30
30
return [
Original file line number Diff line number Diff line change 1
1
export type {
2
2
Candidate ,
3
3
Context ,
4
- } from "https://deno.land/x/ddc_vim@v0.14 .0/types.ts" ;
5
- export { BaseSource } from "https://deno.land/x/ddc_vim@v0.14 .0/types.ts" ;
6
- export type { Denops } from "https://deno.land/x/ddc_vim@v0.14 .0/deps.ts" ;
7
- export { fn , vars } from "https://deno.land/x/ddc_vim@v0.14 .0/deps.ts" ;
4
+ } from "https://deno.land/x/ddc_vim@v0.17 .0/types.ts" ;
5
+ export { BaseSource } from "https://deno.land/x/ddc_vim@v0.17 .0/types.ts" ;
6
+ export type { Denops } from "https://deno.land/x/ddc_vim@v0.17 .0/deps.ts" ;
7
+ export { fn , vars } from "https://deno.land/x/ddc_vim@v0.17 .0/deps.ts" ;
8
8
export type {
9
9
GatherCandidatesArguments ,
10
- } from "https://deno.land/x/ddc_vim@v0.14 .0/base/source.ts" ;
11
- export * as path from "https://deno.land/std@0.108 .0/path/mod.ts" ;
12
- export * as io from "https://deno.land/std@0.108 .0/io/mod.ts" ;
13
- export * as fs from "https://deno.land/std@0.108 .0/fs/mod.ts" ;
14
- export * as asserts from "https://deno.land/std@0.108 .0/testing/asserts.ts" ;
10
+ } from "https://deno.land/x/ddc_vim@v0.17 .0/base/source.ts" ;
11
+ export * as path from "https://deno.land/std@0.111 .0/path/mod.ts" ;
12
+ export * as io from "https://deno.land/std@0.111 .0/io/mod.ts" ;
13
+ export * as fs from "https://deno.land/std@0.111 .0/fs/mod.ts" ;
14
+ export * as asserts from "https://deno.land/std@0.111 .0/testing/asserts.ts" ;
15
15
export {
16
16
asyncIteratorFrom as fromA ,
17
17
iteratorFrom as from ,
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ const createCaller = (name: string): any => {
11
11
12
12
export type Info = (
13
13
denops : Denops ,
14
+ inputLine : string ,
14
15
isPosix : boolean ,
15
16
) => Promise < [
16
17
string ,
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ export class Source extends BaseSource<Params> {
55
55
async gatherCandidates (
56
56
args : GatherCandidatesArguments < Params > ,
57
57
) : Promise < Candidate [ ] > {
58
- const p = args . sourceParams as Params ;
58
+ const p = args . sourceParams ;
59
59
const mode = p . mode === "os"
60
60
? ( Deno . build . os === "windows" ? "win32" : "posix" )
61
61
: p . mode ;
@@ -79,6 +79,7 @@ export class Source extends BaseSource<Params> {
79
79
// )
80
80
const [ inputFileFull , inputFileBasePrefix , bufPath ] = await internal . info (
81
81
args . denops ,
82
+ args . context . input ,
82
83
mode === "posix" ,
83
84
) ;
84
85
You can’t perform that action at this time.
0 commit comments