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