123456789_123456789_123456789_123456789_123456789_

Class: TypeProf::LSP::Message::TextDocument::DidChange

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
Instance Chain:
Inherits: TypeProf::LSP::Message
Defined in: lib/typeprof/lsp/messages.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/messages.rb', line 147

def run
  @params => { textDocument: { uri:, version: }, contentChanges: changes }
  text = @server.open_texts[uri]
  return unless text
  text.apply_changes(changes, version)
  @server.core.update_file(text.path, text.string)
  @server.send_request("workspace/codeLens/refresh")
  @server.publish_diagnostics(uri)
end