void RefactoringProjectUpdater::precompiledHeaderUpdated(const QString &projectPartId,
                                                         const QString &,
                                                         long long)
{
    auto projectPart = m_cppModelManager.projectPartForId(projectPartId);
    if (projectPart)
        updateProjectParts({projectPart.data()}, {});
}
void PchManagerServerInterface::dispatch(const MessageEnvelop &messageEnvelop)
{
    switch (messageEnvelop.messageType()) {
        case MessageType::EndMessage:
            end();
            break;
        case MessageType::UpdateProjectPartsMessage:
            updateProjectParts(messageEnvelop.message<UpdateProjectPartsMessage>());
            break;
        case MessageType::RemoveProjectPartsMessage:
            removeProjectParts(messageEnvelop.message<RemoveProjectPartsMessage>());
            break;
        default:
            qWarning() << "Unknown IpcClientMessage";
    }
}