mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-08 11:34:51 +08:00
Describe the environment_path option properly
This commit is contained in:
@@ -211,19 +211,16 @@ def _check_jedi_availability(show_error=False):
|
||||
return func_receiver
|
||||
|
||||
|
||||
# Tuple of cache key / project
|
||||
_current_project_cache = None, None
|
||||
|
||||
|
||||
def _create_project_cache_key(project_path, environment_path):
|
||||
return dict(project_path=project_path, environment_path=environment_path)
|
||||
|
||||
|
||||
def get_project():
|
||||
global _current_project_cache
|
||||
|
||||
vim_environment_path = vim_eval("g:jedi#environment_path")
|
||||
vim_project_path = vim_eval("g:jedi#project_path")
|
||||
cache_key = _create_project_cache_key(vim_project_path, vim_environment_path)
|
||||
cache_key = dict(project_path=vim_project_path, environment_path=vim_environment_path)
|
||||
|
||||
if cache_key == _current_project_cache[0]:
|
||||
return _current_project_cache[1]
|
||||
|
||||
Reference in New Issue
Block a user