Module: MilkTea::LSP::Server::ServerExecuteCommand
- Included in:
- MilkTea::LSP::Server
- Defined in:
- lib/milk_tea/lsp/server/execute_command.rb
Instance Method Summary collapse
Instance Method Details
#handle_execute_command(params) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/milk_tea/lsp/server/execute_command.rb', line 7 def handle_execute_command(params) command = params["command"] case command when "mtc.restartServer" exit(0) else warn "Unknown executeCommand: #{command}" nil end rescue StandardError => e warn "Error in executeCommand handler: #{e.}" nil end |