♻️ 使用module重构所有代码
This commit is contained in:
+26
-3
@@ -1,6 +1,29 @@
|
||||
#include <spdlog/spdlog.h>
|
||||
#include "./shutdown.hpp"
|
||||
#include "../../protocol/transform/facade.hpp"
|
||||
module;
|
||||
|
||||
|
||||
export module lsp.provider.shutdown.shutdown;
|
||||
import spdlog;
|
||||
|
||||
import std;
|
||||
|
||||
import lsp.protocol;
|
||||
import lsp.codec.facade;
|
||||
import lsp.provider.base.interface;
|
||||
|
||||
namespace transform = lsp::codec;
|
||||
|
||||
export namespace lsp::provider
|
||||
{
|
||||
class Shutdown : public IRequestProvider
|
||||
{
|
||||
public:
|
||||
Shutdown() = default;
|
||||
|
||||
std::string GetMethod() const override;
|
||||
std::string GetProviderName() const override;
|
||||
std::string ProvideResponse(const protocol::RequestMessage& request, ExecutionContext& context) override;
|
||||
};
|
||||
}
|
||||
|
||||
namespace lsp::provider
|
||||
{
|
||||
@@ -1,15 +0,0 @@
|
||||
#pragma once
|
||||
#include "../base/interface.hpp"
|
||||
|
||||
namespace lsp::provider
|
||||
{
|
||||
class Shutdown : public IRequestProvider
|
||||
{
|
||||
public:
|
||||
Shutdown() = default;
|
||||
|
||||
std::string GetMethod() const override;
|
||||
std::string GetProviderName() const override;
|
||||
std::string ProvideResponse(const protocol::RequestMessage& request, ExecutionContext& context) override;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user