Merge pull request #625 from blueyed/add-JediClearCache

Add JediClearCache command
This commit is contained in:
Dave Halter
2016-10-24 10:19:28 +02:00
committed by GitHub
2 changed files with 8 additions and 0 deletions

View File

@@ -267,6 +267,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

View File

@@ -31,5 +31,6 @@ endif
command! -nargs=1 -complete=custom,jedi#py_import_completions Pyimport :call jedi#py_import(<q-args>)
command! -nargs=0 JediDebugInfo call jedi#debug_info()
command! -nargs=0 -bang JediClearCache call jedi#clear_cache(<bang>0)
" vim: set et ts=4: