class TypeProf::LSP::Message::TextDocument::DidChange
常量
- METHOD
公共实例方法
run() 点击切换源代码
# 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