Skip to content

Commit

Permalink
Merge pull request #655 from vinistock/vs-add-range-formatting-method
Browse files Browse the repository at this point in the history
Add range formatting method to the formatter add-on
  • Loading branch information
searls authored Oct 17, 2024
2 parents 0c5a69f + 0082985 commit bdc3b16
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/ruby_lsp/standard/wraps_built_in_lsp_standardizer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ def run_diagnostic(uri, document)
@standardizer.offenses(uri_to_path(uri), document.source, document.encoding)
end

def run_range_formatting(_uri, _partial_source, _base_indentation)
# Not yet supported. Should return the formatted version of `partial_source` which is a partial selection of the
# entire document. For example, it should not try to add a frozen_string_literal magic comment and all style
# corrections should start from the `base_indentation`
nil
end

private

# duplicated from: lib/standard/lsp/routes.rb
Expand Down

0 comments on commit bdc3b16

Please sign in to comment.