Skip to content

Commit

Permalink
Pass options through for format range
Browse files Browse the repository at this point in the history
  • Loading branch information
masad-frost committed Mar 17, 2022
1 parent 95cd3e5 commit 8aa9ce8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pylsp/plugins/yapf_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def pylsp_format_range(document, range, options=None): # pylint: disable=redefi

# Add 1 for 1-indexing vs LSP's 0-indexing
lines = [(range['start']['line'] + 1, range['end']['line'] + 1)]
return _format(document, lines=lines, options=None)
return _format(document, lines=lines, options=options)


def _format(document, lines=None, options=None):
Expand Down

0 comments on commit 8aa9ce8

Please sign in to comment.