Added first implementation of concepts ambiguity resolution + Jenkins file test
This commit is contained in:
@@ -36,18 +36,16 @@ class SheerkaPromptCompleter(Completer):
|
||||
self.params_history_service = self.sheerka.services[SheerkaFunctionsParametersHistory.NAME]
|
||||
self.builtins = []
|
||||
for name, bound_method in sheerka.sheerka_methods.items():
|
||||
self.builtins.append(self.get_completion_desc(name, bound_method, "builtin", ["context"]))
|
||||
self.builtins.append(self.get_completion_desc(name, bound_method.method, "builtin", ["context"]))
|
||||
|
||||
self.pipeable_builtins = []
|
||||
for name, pipeable in self.sheerka.sheerka_pipeables.items():
|
||||
self.pipeable_builtins.append(self.get_completion_desc(name, pipeable, "builtin", ["context", "iterable"]))
|
||||
self.pipeable_builtins.append(
|
||||
self.get_completion_desc(name, pipeable.method, "builtin", ["context", "iterable"]))
|
||||
|
||||
self.exit_commands = [CompletionDesc(c, c, "command") for c in EXIT_COMMANDS]
|
||||
self.globals = self.sheerka.sheerka_methods.copy()
|
||||
self.globals.update(self.sheerka.sheerka_pipeables)
|
||||
|
||||
def get_locals(self):
|
||||
return self.sheerka.sheerka_methods
|
||||
self.globals = {k: v.method for k, v in self.sheerka.sheerka_methods.items()}
|
||||
self.globals.update({k: v.method for k, v in self.sheerka.sheerka_pipeables.items()})
|
||||
|
||||
def get_completions(self, document, complete_event):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user