| 1 |
#pragma once |
| 2 |
#include "LibLsp/JsonRpc/RequestInMessage.h" |
| 3 |
#include "LibLsp/JsonRpc/lsResponseMessage.h" |
| 4 |
#include <string> |
| 5 |
#include "LibLsp/lsp/lsWorkspaceEdit.h" |
| 6 |
#include "LibLsp/lsp/ExecuteCommandParams.h" |
| 7 |
namespace buildpath |
| 8 |
{ |
| 9 |
// static const char* EDIT_ORGNIZEIMPORTS = "java.edit.organizeImports"; |
| 10 |
// static const char* RESOLVE_SOURCE_ATTACHMENT = "java.project.resolveSourceAttachment"; |
| 11 |
|
| 12 |
// static const char* UPDATE_SOURCE_ATTACHMENT = "java.project.updateSourceAttachment"; |
| 13 |
|
| 14 |
// static const char* ADD_TO_SOURCEPATH = "java.project.addToSourcePath"; |
| 15 |
|
| 16 |
// static const char* REMOVE_FROM_SOURCEPATH = "java.project.removeFromSourcePath"; |
| 17 |
|
| 18 |
// static const char* LIST_SOURCEPATHS = "java.project.listSourcePaths"; |
| 19 |
struct Result |
| 20 |
{ |
| 21 |
bool status; |
| 22 |
std::string message; |
| 23 |
}; |
| 24 |
|
| 25 |
} // namespace buildpath |
| 26 |
|
| 27 |
DEFINE_REQUEST_RESPONSE_TYPE(java_executeCommand, ExecuteCommandParams, lsWorkspaceEdit, "java/executeCommand"); |