tree-sitter and lsp-methods
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
#include <spdlog/spdlog.h>
|
||||
#include "./event.hpp"
|
||||
#include "../../protocol/transform/facade.hpp"
|
||||
|
||||
namespace lsp::providers::telemetry
|
||||
{
|
||||
std::string Event::GetMethod() const
|
||||
{
|
||||
return "telemetry/event";
|
||||
}
|
||||
|
||||
std::string Event::GetProviderName() const
|
||||
{
|
||||
return "TelemetryEvent";
|
||||
}
|
||||
|
||||
void Event::HandleNotification(const protocol::NotificationMessage& notification, ExecutionContext& context)
|
||||
{
|
||||
static_cast<void>(context);
|
||||
spdlog::debug("TelemetryEventProvider: Handling notification for method {}", notification.method);
|
||||
|
||||
// TODO: Implement the actual notification handling logic
|
||||
// 1. Parse notification parameters
|
||||
// 2. Update appropriate services/state
|
||||
// 3. Trigger any necessary side effects
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
#pragma once
|
||||
#include <unordered_map>
|
||||
#include "../base/provider_interface.hpp"
|
||||
|
||||
namespace lsp::providers::telemetry
|
||||
{
|
||||
class Event : public INotificationProvider
|
||||
{
|
||||
public:
|
||||
Event() = default;
|
||||
|
||||
std::string GetMethod() const override;
|
||||
std::string GetProviderName() const override;
|
||||
void HandleNotification(const protocol::NotificationMessage& notification, ExecutionContext& context) override;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user