Skip to content

Commit 5c7fd79

Browse files
committed
Pass options through for format range
1 parent 22db74e commit 5c7fd79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: pylsp/plugins/yapf_format.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def pylsp_format_range(document, range, options=None): # pylint: disable=redefi
3333

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

3838

3939
def _format(document, lines=None, options=None):

0 commit comments

Comments
 (0)