For textDocument/hover, do not error on empty results

This commit is contained in:
Fangrui Song 2017-12-18 23:10:42 -08:00 committed by Jacob Dufault
parent cf4603c6fa
commit 18f602c6e8

View File

@ -82,14 +82,6 @@ struct TextDocumentHoverHandler : BaseMessageHandler<Ipc_TextDocumentHover> {
break;
}
if (out.result.contents.value.empty()) {
Out_Error out;
out.id = request->id;
out.error.code = lsErrorCodes::InternalError;
IpcManager::WriteStdout(IpcId::Unknown, out);
return;
}
IpcManager::WriteStdout(IpcId::TextDocumentHover, out);
}
};