some update.

This commit is contained in:
ykiko
2024-07-10 12:46:04 +08:00
parent 221798605c
commit aae15e7b56
18 changed files with 319 additions and 259 deletions

View File

@@ -17,7 +17,7 @@ class Server {
std::map<std::string_view, void (*)(std::string_view)> methods;
public:
int run();
int run(int argc, char** argv);
int exit();
void handle_message(std::string_view message);

16
include/LSP/Setting.h Normal file
View File

@@ -0,0 +1,16 @@
#include <string_view>
namespace clice {
/// Settings for the LSP server
struct Setting {
/// compile_commands.json file path
std::string compile_commands_dictionary = "/build";
/// mode of the server: ["pipe", "socket", "index"]
std::string mode = "pipe";
};
/// global setting instance
inline Setting setting = {};
} // namespace clice