MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / GetCommand

Method GetCommand

CodeFormatServer/src/Service/CommandService.cpp:31–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29}
30
31std::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
44void CommandService::Dispatch(std::string_view command, std::shared_ptr<lsp::ExecuteCommandParams> params) {
45 std::string cmd(command);

Callers 2

ReformatMethod · 0.80
SpellMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected