some update.
This commit is contained in:
@@ -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
16
include/LSP/Setting.h
Normal 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
|
||||
Reference in New Issue
Block a user