Sha256: 2e4c0f6808a4decfdd1511a35398418bd786c88d863392bf868ef3adc5152edd

Contents?: true

Size: 792 Bytes

Versions: 16

Compression:

Stored size: 792 Bytes

Contents

# typed: strict
# frozen_string_literal: true

module RubyLsp
  module Requests
    module Support
      module Formatter
        extend T::Sig
        extend T::Helpers

        interface!

        sig { abstract.params(uri: URI::Generic, document: RubyDocument).returns(T.nilable(String)) }
        def run_formatting(uri, document); end

        sig { abstract.params(uri: URI::Generic, source: String, base_indentation: Integer).returns(T.nilable(String)) }
        def run_range_formatting(uri, source, base_indentation); end

        sig do
          abstract.params(
            uri: URI::Generic,
            document: RubyDocument,
          ).returns(T.nilable(T::Array[Interface::Diagnostic]))
        end
        def run_diagnostic(uri, document); end
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
ruby-lsp-0.23.6 lib/ruby_lsp/requests/support/formatter.rb
ruby-lsp-0.23.5 lib/ruby_lsp/requests/support/formatter.rb
ruby-lsp-0.23.4 lib/ruby_lsp/requests/support/formatter.rb
ruby-lsp-0.23.3 lib/ruby_lsp/requests/support/formatter.rb
ruby-lsp-0.23.2 lib/ruby_lsp/requests/support/formatter.rb
ruby-lsp-0.23.1 lib/ruby_lsp/requests/support/formatter.rb
ruby-lsp-0.23.0 lib/ruby_lsp/requests/support/formatter.rb
ruby-lsp-0.22.1 lib/ruby_lsp/requests/support/formatter.rb
ruby-lsp-0.22.0 lib/ruby_lsp/requests/support/formatter.rb
ruby-lsp-0.21.3 lib/ruby_lsp/requests/support/formatter.rb
ruby-lsp-0.21.2 lib/ruby_lsp/requests/support/formatter.rb
ruby-lsp-0.21.1 lib/ruby_lsp/requests/support/formatter.rb
ruby-lsp-0.21.0 lib/ruby_lsp/requests/support/formatter.rb
ruby-lsp-0.20.1 lib/ruby_lsp/requests/support/formatter.rb
ruby-lsp-0.20.0 lib/ruby_lsp/requests/support/formatter.rb
ruby-lsp-0.19.1 lib/ruby_lsp/requests/support/formatter.rb