Class: TypeProf::LSP::Message::TextDocument::DidOpen
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
::TypeProf::LSP::Message
|
|
Instance Chain:
self,
::TypeProf::LSP::Message
|
|
Inherits: |
TypeProf::LSP::Message
|
Defined in: | lib/typeprof/lsp/messages.rb |
Constant Summary
-
METHOD =
notification
"textDocument/didOpen"
::TypeProf::LSP::Message
- Inherited
Class Method Summary
::TypeProf::LSP::Message
- Inherited
Instance Method Summary
Constructor Details
This class inherits a constructor from TypeProf::LSP::Message
Instance Method Details
#run
[ GitHub ]# File 'lib/typeprof/lsp/messages.rb', line 131
def run @params => { textDocument: { uri:, version:, text: } } path = @server.uri_to_path(uri) return unless @server.target_path?(path) text = Text.new(path, text, version) @server.open_texts[uri] = text @server.core.update_file(text.path, text.string) @server.send_request("workspace/codeLens/refresh") @server.publish_diagnostics(uri) end