Files
clice/include/LSP/Server.h
2024-07-06 23:30:58 +08:00

25 lines
416 B
C++

#include <uv.h>
#include <string_view>
namespace clice {
// global server instance
extern class Server server;
/// core class responsible for starting the server
class Server {
uv_loop_t* loop;
uv_pipe_t stdin_pipe;
uv_pipe_t stdout_pipe;
public:
int start();
int exit();
void handle_message(std::string_view message);
// LSP methods
void initialize();
};
} // namespace clice