class RubyLsp::Requests::DocumentLink
“‘
end
def format(source, maxwidth = T.unsafe(nil))
# source://syntax_tree/3.2.1/lib/syntax_tree.rb#51 <- it will be clickable and will take the user to that location
“`ruby
# Example
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)
def initialize(uri, comments, dispatcher) super() @response_builder = T.let( ResponseBuilders::CollectionResponseBuilder[Interface::DocumentLink].new, ResponseBuilders::CollectionResponseBuilder[Interface::DocumentLink], ) Listeners::DocumentLink.new(@response_builder, uri, comments, dispatcher) end
def perform
def perform @response_builder.response end
def provider
def provider Interface::DocumentLinkOptions.new(resolve_provider: false) end