From dc20ea3b339133b5a364e74ca19b2c0ae5478908 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Tue, 23 Oct 2018 09:51:50 -0700 Subject: [PATCH] Fix textDocument/implementation --- src/messages/ccls_inheritance.cc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/messages/ccls_inheritance.cc b/src/messages/ccls_inheritance.cc index 747001e7..75a11099 100644 --- a/src/messages/ccls_inheritance.cc +++ b/src/messages/ccls_inheritance.cc @@ -185,10 +185,17 @@ struct Handler_textDocumentImplementation : BaseMessageHandler { MethodType GetMethodType() const override { return implementation; } void Run(In_textDocumentImplementation *request) override { + Handler_cclsInheritance handler; + handler.db = db; + handler.project = project; + handler.working_files = working_files; + In_cclsInheritance request1; + request1.id = request->id; request1.params.textDocument = request->params.textDocument; request1.params.position = request->params.position; - Handler_cclsInheritance().Run(&request1); + request1.params.derived = true; + handler.Run(&request1); } }; REGISTER_MESSAGE_HANDLER(Handler_textDocumentImplementation);