lsp协议的枚举不使用google风格

This commit is contained in:
csh
2025-10-15 22:59:06 +08:00
parent 1f7045140e
commit 4deb0b6d87
25 changed files with 176 additions and 175 deletions
@@ -31,7 +31,7 @@ namespace lsp::provider
if (!json.has_value())
{
context.TriggerLifecycleEvent(ServerLifecycleEvent::kInitializeFailed);
return BuildErrorResponseMessage(request, protocol::ErrorCodes::kInternalError, "Internal error");
return BuildErrorResponseMessage(request, protocol::ErrorCodes::InternalError, "Internal error");
}
context.TriggerLifecycleEvent(ServerLifecycleEvent::kInitialized);
return json.value();
@@ -52,7 +52,7 @@ namespace lsp::provider
{
protocol::TextDocumentSyncOptions options;
options.openClose = true;
options.change = protocol::TextDocumentSyncKind::kIncremental;
options.change = protocol::TextDocumentSyncKind::Incremental;
return options;
}