8000 Fix goto_assignments config (#457) · lcheylus/python-lsp-server@d7fb817 · GitHub
[go: up one dir, main page]

Skip to content

Commit d7fb817

Browse files
lgeigergatesn
authored andcommitted
Fix goto_assignments config (python-lsp#457)
1 parent ab3e5ea commit d7fb817

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pyls/plugins/definition.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@
77

88
@hookimpl
99
def pyls_definitions(config, document, position):
10-
params = {k: v for k, v in config.plugin_settings('jedi_definition').items() if v is not None}
11-
definitions = document.jedi_script(position).goto_assignments(**params)
10+
settings = config.plugin_settings('jedi_definition')
11+
definitions = document.jedi_script(position).goto_assignments(
12+
follow_imports=settings.get('follow_imports', False),
13+
follow_builtin_imports=settings.get('follow_builtin_imports', False))
1214

1315
definitions = [
1416
d for d in definitions

0 commit comments

Comments
 (0)
0