tree-sitter and lsp-methods

This commit is contained in:
csh
2025-09-14 12:28:37 +08:00
parent e9972fd869
commit aac12137cb
214 changed files with 350938 additions and 142202 deletions
@@ -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;
};
}