class TypeProf::LSP::Message::Workspace::ExecuteCommand
workspace/didChangeWatchedFiles notification
Constants
- METHOD
Public Instance Methods
run()
click to toggle source
# File typeprof-0.30.1/lib/typeprof/lsp/messages.rb, line 385 def run case @params[:command] when "typeprof.enableSignature" @server.signature_enabled = true @server.send_request("workspace/codeLens/refresh") respond(nil) when "typeprof.disableSignature" @server.signature_enabled = false @server.send_request("workspace/codeLens/refresh") respond(nil) when "typeprof.createPrototypeRBS" uri, row, col, str = @params[:arguments] @server.send_request( "workspace/applyEdit", edit: { changes: { uri => [{ range: TypeProf::CodeRange[row, col, row, col].to_lsp, newText: "#: #{ str }\n" + " " * col, }], }, }, ) do |res, err| end respond(nil) end end