forked from VimPlug/jedi-vim
Fix :JediClearCache!
Parso's cache can be cleaned from Jedi now.
This commit is contained in:
committed by
Dave Halter
parent
914754a04e
commit
69aa410afa
@@ -333,9 +333,10 @@ function! jedi#py_import_completions(argl, cmdl, pos) abort
|
|||||||
endfun
|
endfun
|
||||||
|
|
||||||
function! jedi#clear_cache(bang) abort
|
function! jedi#clear_cache(bang) abort
|
||||||
PythonJedi jedi_vim.jedi.cache.clear_time_caches(True)
|
|
||||||
if a:bang
|
if a:bang
|
||||||
PythonJedi jedi_vim.jedi.parser.utils.ParserPickling.clear_cache()
|
PythonJedi jedi_vim.jedi.cache.clear_time_caches(True)
|
||||||
|
else
|
||||||
|
PythonJedi jedi_vim.jedi.cache.clear_time_caches(False)
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user