123456789_123456789_123456789_123456789_123456789_

Class: TypeProf::LSP::Message::TextDocument::CodeLens

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
Instance Chain:
Inherits: TypeProf::LSP::Message
Defined in: lib/typeprof/lsp.rb

Constant Summary

::TypeProf::LSP::Message - Inherited

Classes, Table

Class Method Summary

Instance Method Summary

Constructor Details

This class inherits a constructor from TypeProf::LSP::Message

Instance Method Details

#run

[ GitHub ]

  
# File 'lib/typeprof/lsp.rb', line 749

def run
  case @params
    in { textDocument: { uri: } }
  else
    raise
  end

  text = @server.open_texts[uri]
  if text && @server.signature_enabled
    # enqueue in the analysis queue because codeLens is order sensitive
    text.push_analysis_queue do
      respond(text.sigs)
    end
  else
    respond(nil)
  end
end