mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-23 16:15:07 +00:00
Minor type cleanup
This commit is contained in:
parent
a566167db6
commit
4270b4fdef
@ -306,7 +306,6 @@ void LaunchStdinLoop(Config* config,
|
|||||||
MethodType method_type = message->GetMethodType();
|
MethodType method_type = message->GetMethodType();
|
||||||
(*request_times)[method_type] = Timer();
|
(*request_times)[method_type] = Timer();
|
||||||
|
|
||||||
LOG_S(ERROR) << "!! Got message of type " << method_type;
|
|
||||||
queue->for_querydb.PushBack(std::move(message));
|
queue->for_querydb.PushBack(std::move(message));
|
||||||
|
|
||||||
// If the message was to exit then querydb will take care of the actual
|
// If the message was to exit then querydb will take care of the actual
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
#include "method.h"
|
#include "method.h"
|
||||||
|
|
||||||
const char* kMethodType_Unknown = "$unknown";
|
MethodType kMethodType_Unknown = "$unknown";
|
||||||
const char* kMethodType_Exit = "exit";
|
MethodType kMethodType_Exit = "exit";
|
||||||
const char* kMethodType_TextDocumentPublishDiagnostics = "textDocument/publishDiagnostics";
|
MethodType kMethodType_TextDocumentPublishDiagnostics = "textDocument/publishDiagnostics";
|
||||||
const char* kMethodType_CqueryPublishInactiveRegions = "$cquery/publishInactiveRegions";
|
MethodType kMethodType_CqueryPublishInactiveRegions = "$cquery/publishInactiveRegions";
|
||||||
const char* kMethodType_CqueryPublishSemanticHighlighting = "$cquery/publishSemanticHighlighting";
|
MethodType kMethodType_CqueryPublishSemanticHighlighting = "$cquery/publishSemanticHighlighting";
|
||||||
|
|
||||||
InMessage::~InMessage() = default;
|
InMessage::~InMessage() = default;
|
||||||
|
|
||||||
|
10
src/method.h
10
src/method.h
@ -6,11 +6,11 @@
|
|||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
using MethodType = std::string;
|
using MethodType = std::string;
|
||||||
extern const char* kMethodType_Unknown;
|
extern MethodType kMethodType_Unknown;
|
||||||
extern const char* kMethodType_Exit;
|
extern MethodType kMethodType_Exit;
|
||||||
extern const char* kMethodType_TextDocumentPublishDiagnostics;
|
extern MethodType kMethodType_TextDocumentPublishDiagnostics;
|
||||||
extern const char* kMethodType_CqueryPublishInactiveRegions;
|
extern MethodType kMethodType_CqueryPublishInactiveRegions;
|
||||||
extern const char* kMethodType_CqueryPublishSemanticHighlighting;
|
extern MethodType kMethodType_CqueryPublishSemanticHighlighting;
|
||||||
|
|
||||||
using lsRequestId = std::variant<std::monostate, int64_t, std::string>;
|
using lsRequestId = std::variant<std::monostate, int64_t, std::string>;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user