mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-26 01:21:57 +00:00
For textDocument/hover, do not error on empty results
This commit is contained in:
parent
cf4603c6fa
commit
18f602c6e8
@ -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);
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user