Class: TypeProf::LSP::Message::TextDocument::DidChange
- Inherits:
-
TypeProf::LSP::Message
- Object
- TypeProf::LSP::Message
- TypeProf::LSP::Message::TextDocument::DidChange
- Defined in:
- lib/typeprof/lsp/messages.rb
Constant Summary collapse
- METHOD =
notification
"textDocument/didChange"
Constants inherited from TypeProf::LSP::Message
Classes, TypeProf::LSP::Message::Table
Instance Method Summary collapse
Methods inherited from TypeProf::LSP::Message
build_table, find, inherited, #initialize, #log, #notify, #respond, #respond_error
Constructor Details
This class inherits a constructor from TypeProf::LSP::Message
Instance Method Details
#run ⇒ Object
147 148 149 150 151 152 153 154 155 |
# 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 |