forked from VimPlug/jedi
Get rid of completions in tests
This commit is contained in:
@@ -202,7 +202,7 @@ class Script(object):
|
||||
with debug.increase_indent_cm('completions'):
|
||||
completion = Completion(
|
||||
self._inference_state, self._get_module_context(), self._code_lines,
|
||||
(line, column), self.call_signatures
|
||||
(line, column), self.find_signatures
|
||||
)
|
||||
return completion.completions(fuzzy)
|
||||
|
||||
|
||||
@@ -229,7 +229,7 @@ class Completion:
|
||||
# 3. Decorators are very primitive and have an optional `(` with
|
||||
# optional arglist in them.
|
||||
if nodes[-1] in ['(', ','] and nonterminals[-1] in ('trailer', 'arglist', 'decorator'):
|
||||
call_signatures = self._call_signatures_callback()
|
||||
call_signatures = self._call_signatures_callback(*self._position)
|
||||
completion_names += get_call_signature_param_names(call_signatures)
|
||||
|
||||
return completion_names
|
||||
|
||||
@@ -23,7 +23,7 @@ def file_name_completions(inference_state, module_context, start_leaf, string,
|
||||
must_start_with = os.path.basename(string) + like_name
|
||||
string = os.path.dirname(string)
|
||||
|
||||
sigs = call_signatures_callback()
|
||||
sigs = call_signatures_callback(*position)
|
||||
is_in_os_path_join = sigs and all(s.full_name == 'os.path.join' for s in sigs)
|
||||
if is_in_os_path_join:
|
||||
to_be_added = _add_os_path_join(module_context, start_leaf, sigs[0].bracket_start)
|
||||
|
||||
Reference in New Issue
Block a user