From aa4cd2e2b4297445f35868a6e060e13bcb856cda Mon Sep 17 00:00:00 2001 From: youben11 Date: Tue, 29 Oct 2019 20:13:48 +0100 Subject: [PATCH] fix: pass document instead of source --- pyls/plugins/importmagic_lint.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyls/plugins/importmagic_lint.py b/pyls/plugins/importmagic_lint.py index 15035f3a..b8cc7f00 100644 --- a/pyls/plugins/importmagic_lint.py +++ b/pyls/plugins/importmagic_lint.py @@ -129,7 +129,7 @@ def pyls_code_actions(config, document, context): # These tend to be terrible continue - actions.append(generate_add_action(document.source, index, module, variable)) + actions.append(generate_add_action(document, index, module, variable)) return actions