class TypeProf::LSP::Message::TextDocument::DidChange
Constants
- METHOD
Public Instance Methods
Source
# File bundled-src/typeprof-0.31.1/lib/typeprof/lsp/messages.rb, line 148 def run @params => { textDocument: { uri:, version: }, contentChanges: changes } text = @server.open_texts[uri] return unless text text.apply_changes(changes, version) @server.update_file(text.path, text.string) @server.send_request("workspace/codeLens/refresh") @server.publish_updated_diagnostics end