Fix textDocument/implementation

This commit is contained in:
Fangrui Song 2018-10-23 09:51:50 -07:00
parent 283d887271
commit 32a658ad24

View File

@ -197,10 +197,17 @@ struct Handler_textDocumentImplementation
: BaseMessageHandler<In_textDocumentImplementation> { : BaseMessageHandler<In_textDocumentImplementation> {
MethodType GetMethodType() const override { return implementation; } MethodType GetMethodType() const override { return implementation; }
void Run(In_textDocumentImplementation *request) override { void Run(In_textDocumentImplementation *request) override {
Handler_cclsInheritance handler;
handler.db = db;
handler.project = project;
handler.working_files = working_files;
In_cclsInheritance request1; In_cclsInheritance request1;
request1.id = request->id;
request1.params.textDocument = request->params.textDocument; request1.params.textDocument = request->params.textDocument;
request1.params.position = request->params.position; request1.params.position = request->params.position;
Handler_cclsInheritance().Run(&request1); request1.params.derived = true;
handler.Run(&request1);
} }
}; };
REGISTER_MESSAGE_HANDLER(Handler_textDocumentImplementation); REGISTER_MESSAGE_HANDLER(Handler_textDocumentImplementation);