| 29 | } |
| 30 | |
| 31 | std::string CommandService::GetCommand(Command command) { |
| 32 | switch (command) { |
| 33 | case Command::Reformat: |
| 34 | return "emmylua.reformat.me"; |
| 35 | case Command::SpellCorrect: |
| 36 | return "emmylua.spell.correct"; |
| 37 | case Command::SpellAddDict: |
| 38 | return "emmylua.spell.addDict"; |
| 39 | } |
| 40 | |
| 41 | return ""; |
| 42 | } |
| 43 | |
| 44 | void CommandService::Dispatch(std::string_view command, std::shared_ptr<lsp::ExecuteCommandParams> params) { |
| 45 | std::string cmd(command); |