class TypeProf::LSP::Message::TextDocument::DidChange - typeprof: Ruby Standard Library Documentation

# class TypeProf::LSP::Message::TextDocument::DidChange

### Constants

METHOD

### Public Instance Methods

run() click to toggle source

    # File typeprof-0.30.1/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