Skip to content

Commit f99ae3c

Browse files
authored
fix(coc): rm localstorage-file flag (#5478)
1 parent fb9d4ec commit f99ae3c

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

autoload/coc/util.vim

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -136,19 +136,6 @@ function! coc#util#job_command()
136136
endif
137137

138138
let default = ['--no-warnings']
139-
let output = system(node . ' --version')
140-
if v:shell_error
141-
echohl Error | echom '[coc.nvim] Unexpected result from "'.node.' --version"' | echohl None
142-
return
143-
endif
144-
let ms = matchlist(output, 'v\(\d\+\).\(\d\+\).\(\d\+\)')
145-
if empty(ms)
146-
echohl Error | echom '[coc.nvim] Unable to get node version by "'.node.' --version"' | echohl None
147-
return
148-
endif
149-
if str2nr(ms[1]) >= 25
150-
let default += ['--localstorage-file=' . coc#util#get_data_home() . '/localstorage']
151-
endif
152139
return [node] + get(g:, 'coc_node_args', default) + [s:root.'/build/index.js']
153140
endfunction
154141

0 commit comments

Comments
 (0)