class RubyLsp::Requests::OnTypeFormatting

The on type formatting request formats code as the user is typing. For example, automatically adding end to class definitions.

Example

class Foo # <-- upon adding a line break, on type formatting is triggered
  # <-- cursor ends up here
end # <-- end is automatically added

Constants

>END_REGEXES

Public Class Methods

new(document, position, trigger_character, client_name)

Calls superclass method

provider()

Public Instance Methods

perform()