forked from qt-creator/qt-creator
CppEditor: Add settings for clangd session mode
Complete with (hidden) UI. Doesn't do anything yet, because some assumptions about projects need to be adapted on the LanguageClient side first. Task-number: QTCREATORBUG-26526 Change-Id: I34c92555e34c3d3ed98462261d47b35dfc015ce0 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -831,6 +831,7 @@ bool SessionManager::renameSession(const QString &original, const QString &newNa
|
||||
return false;
|
||||
if (original == activeSession())
|
||||
loadSession(newName);
|
||||
emit instance()->sessionRenamed(original, newName);
|
||||
return deleteSession(original);
|
||||
}
|
||||
|
||||
@@ -858,6 +859,7 @@ bool SessionManager::deleteSession(const QString &session)
|
||||
if (!d->m_sessions.contains(session))
|
||||
return false;
|
||||
d->m_sessions.removeOne(session);
|
||||
emit instance()->sessionRemoved(session);
|
||||
QFile fi(sessionNameToFileName(session).toString());
|
||||
if (fi.exists())
|
||||
return fi.remove();
|
||||
|
||||
Reference in New Issue
Block a user