forked from VimPlug/jedi
Removed settings.no_completion_duplicates
This commit is contained in:
@@ -29,6 +29,8 @@ Changelog
|
|||||||
``Script.goto``.
|
``Script.goto``.
|
||||||
- **Python 2 support deprecated**. For this release it is best effort. Python 2
|
- **Python 2 support deprecated**. For this release it is best effort. Python 2
|
||||||
has reached the end of its life and now it's just about a smooth transition.
|
has reached the end of its life and now it's just about a smooth transition.
|
||||||
|
- Removed ``settings.no_completion_duplicates``. It wasn't tested and nobody
|
||||||
|
was probably using it anyway.
|
||||||
|
|
||||||
0.15.2 (2019-12-20)
|
0.15.2 (2019-12-20)
|
||||||
+++++++++++++++++++
|
+++++++++++++++++++
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ def get_signature_param_names(signatures):
|
|||||||
|
|
||||||
|
|
||||||
def filter_names(inference_state, completion_names, stack, like_name, fuzzy, cached_name):
|
def filter_names(inference_state, completion_names, stack, like_name, fuzzy, cached_name):
|
||||||
comp_dct = {}
|
comp_dct = set()
|
||||||
if settings.case_insensitive_completion:
|
if settings.case_insensitive_completion:
|
||||||
like_name = like_name.lower()
|
like_name = like_name.lower()
|
||||||
for name in completion_names:
|
for name in completion_names:
|
||||||
@@ -62,10 +62,8 @@ def filter_names(inference_state, completion_names, stack, like_name, fuzzy, cac
|
|||||||
cached_name=cached_name,
|
cached_name=cached_name,
|
||||||
)
|
)
|
||||||
k = (new.name, new.complete) # key
|
k = (new.name, new.complete) # key
|
||||||
if k in comp_dct and settings.no_completion_duplicates:
|
if k not in comp_dct:
|
||||||
comp_dct[k]._same_name_completions.append(new)
|
comp_dct.add(k)
|
||||||
else:
|
|
||||||
comp_dct[k] = new
|
|
||||||
yield new
|
yield new
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -17,7 +17,6 @@ Completion output
|
|||||||
|
|
||||||
.. autodata:: case_insensitive_completion
|
.. autodata:: case_insensitive_completion
|
||||||
.. autodata:: add_bracket_after_function
|
.. autodata:: add_bracket_after_function
|
||||||
.. autodata:: no_completion_duplicates
|
|
||||||
|
|
||||||
|
|
||||||
Filesystem cache
|
Filesystem cache
|
||||||
@@ -68,12 +67,6 @@ Adds an opening bracket after a function, because that's normal behaviour.
|
|||||||
Removed it again, because in VIM that is not very practical.
|
Removed it again, because in VIM that is not very practical.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
no_completion_duplicates = True
|
|
||||||
"""
|
|
||||||
If set, completions with the same name don't appear in the output anymore,
|
|
||||||
but are in the `same_name_completions` attribute.
|
|
||||||
"""
|
|
||||||
|
|
||||||
# ----------------
|
# ----------------
|
||||||
# Filesystem cache
|
# Filesystem cache
|
||||||
# ----------------
|
# ----------------
|
||||||
|
|||||||
Reference in New Issue
Block a user