Debian Codegraph @

LspCpp/include/LibLsp/lsp/ExecuteCommandParams.h

raw
1 #pragma once
2
3 #include "lsAny.h"
4 struct ExecuteCommandParams
5 {
6 /**
7 * The identifier of the actual command handler.
8 */
9
10 std::string command;
11
12 /**
13 * Arguments that the command should be invoked with.
14 * The arguments are typically specified when a command is returned from the server to the client.
15 * Example requests that return a command are textDocument/codeAction or textDocument/codeLens.
16 */
17 optional<std::vector<lsp::Any>> arguments;
18
19 MAKE_SWAP_METHOD(ExecuteCommandParams, command, arguments);
20 };
21 MAKE_REFLECT_STRUCT(ExecuteCommandParams, command, arguments)