mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-22 07:35:08 +00:00
Set typeDefinitionProvider
This commit is contained in:
parent
96bba583c9
commit
2035a24c74
@ -138,8 +138,7 @@ bool QueryDbMainLoop(QueryDatabase* db,
|
||||
}
|
||||
|
||||
if (message) {
|
||||
LOG_S(FATAL) << "Exiting; no handler for " << message->GetMethodType();
|
||||
exit(1);
|
||||
LOG_S(ERROR) << "No handler for " << message->GetMethodType();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -175,6 +175,7 @@ MAKE_REFLECT_STRUCT(lsServerCapabilities,
|
||||
completionProvider,
|
||||
signatureHelpProvider,
|
||||
definitionProvider,
|
||||
typeDefinitionProvider,
|
||||
referencesProvider,
|
||||
documentHighlightProvider,
|
||||
documentSymbolProvider,
|
||||
@ -484,20 +485,6 @@ struct Handler_Initialize : BaseMessageHandler<In_InitializeRequest> {
|
||||
Out_InitializeResponse out;
|
||||
out.id = request->id;
|
||||
|
||||
// out.result.capabilities.textDocumentSync =
|
||||
// lsTextDocumentSyncOptions();
|
||||
// out.result.capabilities.textDocumentSync->openClose = true;
|
||||
// out.result.capabilities.textDocumentSync->change =
|
||||
// lsTextDocumentSyncKind::Full;
|
||||
// out.result.capabilities.textDocumentSync->willSave = true;
|
||||
// out.result.capabilities.textDocumentSync->willSaveWaitUntil =
|
||||
// true;
|
||||
|
||||
#if USE_CLANG_CXX
|
||||
out.result.capabilities.documentFormattingProvider = true;
|
||||
out.result.capabilities.documentRangeFormattingProvider = true;
|
||||
#endif
|
||||
|
||||
QueueManager::WriteStdout(kMethodType, out);
|
||||
|
||||
// Set project root.
|
||||
|
@ -2,18 +2,14 @@
|
||||
|
||||
#include "utils.h"
|
||||
|
||||
#include <optional>
|
||||
|
||||
#include <algorithm>
|
||||
#include <atomic>
|
||||
#include <condition_variable>
|
||||
#include <deque>
|
||||
#include <mutex>
|
||||
#include <optional>
|
||||
#include <tuple>
|
||||
#include <utility>
|
||||
|
||||
// TODO: cleanup includes.
|
||||
|
||||
struct BaseThreadQueue {
|
||||
virtual bool IsEmpty() = 0;
|
||||
virtual ~BaseThreadQueue() = default;
|
||||
|
Loading…
Reference in New Issue
Block a user