From d7fb817e8f992bd5c6a287f5afb5e999a1e29449 Mon Sep 17 00:00:00 2001 From: Lukas Geiger Date: Mon, 3 Dec 2018 10:34:40 +0100 Subject: [PATCH] Fix goto_assignments config (#457) --- pyls/plugins/definition.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pyls/plugins/definition.py b/pyls/plugins/definition.py index 7df80a19..005e754c 100644 --- a/pyls/plugins/definition.py +++ b/pyls/plugins/definition.py @@ -7,8 +7,10 @@ @hookimpl def pyls_definitions(config, document, position): - params = {k: v for k, v in config.plugin_settings('jedi_definition').items() if v is not None} - definitions = document.jedi_script(position).goto_assignments(**params) + settings = config.plugin_settings('jedi_definition') + definitions = document.jedi_script(position).goto_assignments( + follow_imports=settings.get('follow_imports', False), + follow_builtin_imports=settings.get('follow_builtin_imports', False)) definitions = [ d for d in definitions