Removed settings.no_completion_duplicates

This commit is contained in:
Dave Halter
2020-01-23 23:16:02 +01:00
parent 0c56aa4d4b
commit cc8a3f192d
3 changed files with 5 additions and 12 deletions

View File

@@ -29,6 +29,8 @@ Changelog
``Script.goto``.
- **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.
- Removed ``settings.no_completion_duplicates``. It wasn't tested and nobody
was probably using it anyway.
0.15.2 (2019-12-20)
+++++++++++++++++++

View File

@@ -41,7 +41,7 @@ def get_signature_param_names(signatures):
def filter_names(inference_state, completion_names, stack, like_name, fuzzy, cached_name):
comp_dct = {}
comp_dct = set()
if settings.case_insensitive_completion:
like_name = like_name.lower()
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,
)
k = (new.name, new.complete) # key
if k in comp_dct and settings.no_completion_duplicates:
comp_dct[k]._same_name_completions.append(new)
else:
comp_dct[k] = new
if k not in comp_dct:
comp_dct.add(k)
yield new

View File

@@ -17,7 +17,6 @@ Completion output
.. autodata:: case_insensitive_completion
.. autodata:: add_bracket_after_function
.. autodata:: no_completion_duplicates
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.
"""
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
# ----------------