forked from VimPlug/jedi-vim
Add JediClearCache command
This can be used to work around issues like https://github.com/davidhalter/jedi/issues/784.
This commit is contained in:
@@ -266,6 +266,13 @@ function! jedi#py_import_completions(argl, cmdl, pos)
|
||||
PythonJedi jedi_vim.py_import_completions()
|
||||
endfun
|
||||
|
||||
function! jedi#clear_cache(bang)
|
||||
PythonJedi jedi_vim.jedi.cache.clear_time_caches(True)
|
||||
if a:bang
|
||||
PythonJedi jedi_vim.jedi.parser.utils.ParserPickling.clear_cache()
|
||||
endif
|
||||
endfunction
|
||||
|
||||
|
||||
" ------------------------------------------------------------------------
|
||||
" show_documentation
|
||||
|
||||
Reference in New Issue
Block a user