Skip to content

Commit

Permalink
Add range formatting method to the formatter add-on
Browse files Browse the repository at this point in the history
  • Loading branch information
vinistock committed Oct 16, 2024
1 parent 0c5a69f commit 2505d03
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` 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 2505d03

Please sign in to comment.