Skip to content

Commit

Permalink
fix: pass document instead of source
Browse files Browse the repository at this point in the history
  • Loading branch information
youben11 committed Oct 29, 2019
1 parent 8242066 commit 5175028
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyls/plugins/importmagic_lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 5175028

Please sign in to comment.