lsp协议的枚举不使用google风格
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user