class TypeProf::LSP::Message::TextDocument::DidOpen

Constants

METHOD

Public Instance Methods

run() click to toggle source
# File typeprof-0.21.8/lib/typeprof/lsp.rb, line 561
def run
  case @params
  in { textDocument: { uri:, version:, text: } }
  else
    raise
  end
  if uri.start_with?(@server.root_uri)
    @server.open_texts[uri] = Text.new(@server, uri, text, version)
  end
end