File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -77,10 +77,15 @@ endfunction
77
77
78
78
function ! denops#plugin#check_type (... ) abort
79
79
if a: 0
80
- let l: scripts = [denops#_internal#plugin#get (a: 1 ). script ]
80
+ const l: plugins = [denops#_internal#plugin#get (a: 1 )]
81
81
else
82
- let l: scripts = denops#_internal#plugin#list ()
83
- \- >copy ()- >map ({ _, v - > v .script })- >filter ({ _, v - > v !=# ' ' })
82
+ const l: plugins = denops#_internal#plugin#list ()
83
+ endif
84
+ const l: scripts = l: plugins
85
+ \- >copy ()- >map ({ _, v - > v .script })- >filter ({ _, v - > v !=# ' ' })
86
+ if empty (l: scripts )
87
+ call denops#_internal#echo#info (" No plugins are loaded" )
88
+ return
84
89
endif
85
90
let l: args = [g: denops #deno, ' check' ] + l: scripts
86
91
let l: job = denops#_internal#job#start (l: args , {
Original file line number Diff line number Diff line change @@ -437,7 +437,7 @@ denops#plugin#reload({plugin}[, {options}])
437
437
438
438
*denops#plugin#check_type()*
439
439
denops#plugin#check_type([{name} ])
440
- Runs Deno's type check feature for {name} or all registered plugins.
440
+ Runs Deno's type check feature for {name} or all loaded plugins.
441
441
The result of the check will be displayed in | message-history | . It
442
442
throws an error when {name} does not match the | denops-plugin-name | .
443
443
You can’t perform that action at this time.
0 commit comments