Clean the project (#57)

This commit is contained in:
ykiko
2025-02-05 14:10:11 +08:00
committed by GitHub
parent 9b98354918
commit 2f9622bca7
71 changed files with 1521 additions and 742 deletions

View File

@@ -1,4 +1,4 @@
#include "Server/Logger.h"
#include "Support/Logger.h"
#include "Server/Server.h"
namespace clice {
@@ -79,7 +79,7 @@ async::Task<> Server::onReceive(json::Value value) {
}
async::Task<> Server::request(llvm::StringRef method, json::Value params) {
co_await async::write(json::Object{
co_await async::net::write(json::Object{
{"jsonrpc", "2.0" },
{"id", id += 1 },
{"method", method },
@@ -88,7 +88,7 @@ async::Task<> Server::request(llvm::StringRef method, json::Value params) {
}
async::Task<> Server::notify(llvm::StringRef method, json::Value params) {
co_await async::write(json::Object{
co_await async::net::write(json::Object{
{"jsonrpc", "2.0" },
{"method", method },
{"params", std::move(params)},
@@ -96,7 +96,7 @@ async::Task<> Server::notify(llvm::StringRef method, json::Value params) {
}
async::Task<> Server::response(json::Value id, json::Value result) {
co_await async::write(json::Object{
co_await async::net::write(json::Object{
{"jsonrpc", "2.0" },
{"id", id },
{"result", std::move(result)},