class RubyLsp::Requests::DocumentLink

When the user clicks the link, it’ll open that location.
makes ‘# source://PATH_TO_FILE#line` comments in a Ruby/RBI file clickable if the file exists.
The [document link](microsoft.github.io/language-server-protocol/specification#textDocument_documentLink)

def initialize(uri, comments, dispatcher)

: (URI::Generic uri, Array[Prism::Comment] comments, Prism::Dispatcher dispatcher) -> void
def initialize(uri, comments, dispatcher)
  super()
  @response_builder = ResponseBuilders::CollectionResponseBuilder
    .new #: ResponseBuilders::CollectionResponseBuilder[Interface::DocumentLink]
  Listeners::DocumentLink.new(@response_builder, uri, comments, dispatcher)
end

def perform

: -> Array[Interface::DocumentLink]
@override
def perform
  @response_builder.response
end

def provider

: -> Interface::DocumentLinkOptions
def provider
  Interface::DocumentLinkOptions.new(resolve_provider: false)
end