class RubyLsp::Requests::Support::SyntaxTreeFormatter

def run_formatting(uri, document)

: (URI::Generic uri, RubyDocument document) -> String?
@override
def run_formatting(uri, document)
  path = uri.to_standardized_path
  return if path && @options.ignore_files.any? { |pattern| File.fnmatch?("*/#{pattern}", path) }
  SyntaxTree.format(document.source, @options.print_width, options: @options.formatter_options)
end