class TypeProf::LSP::Message::TextDocument::Hover
Constants
- METHOD
Public Instance Methods
run()
click to toggle source
# File typeprof-0.30.1/lib/typeprof/lsp/messages.rb, line 254 def run @params => { textDocument: { uri: }, position: pos, } text = @server.open_texts[uri] unless text respond(nil) return end str = @server.core.hover(text.path, TypeProf::CodePosition.from_lsp(pos)) if str respond(contents: { language: "ruby", value: str }) else respond(nil) end end