forked from qt-creator/qt-creator
LanguageClient: Add "unexpected" argument to clientRemoved() signal
Change-Id: I25b6b13759d6052bfc15fc78ac60c532a55885b8 Reviewed-by: David Schulz <david.schulz@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -194,7 +194,7 @@ void LanguageClientManager::clientFinished(Client *client)
|
|||||||
openDocumentWithClient(document, nullptr);
|
openDocumentWithClient(document, nullptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
deleteClient(client);
|
deleteClient(client, unexpectedFinish);
|
||||||
if (isShutdownFinished())
|
if (isShutdownFinished())
|
||||||
emit managerInstance->shutdownFinished();
|
emit managerInstance->shutdownFinished();
|
||||||
}
|
}
|
||||||
@@ -234,7 +234,7 @@ void LanguageClientManager::shutdownClient(Client *client)
|
|||||||
deleteClient(client);
|
deleteClient(client);
|
||||||
}
|
}
|
||||||
|
|
||||||
void LanguageClientManager::deleteClient(Client *client)
|
void LanguageClientManager::deleteClient(Client *client, bool unexpected)
|
||||||
{
|
{
|
||||||
QTC_ASSERT(managerInstance, return);
|
QTC_ASSERT(managerInstance, return);
|
||||||
QTC_ASSERT(client, return);
|
QTC_ASSERT(client, return);
|
||||||
@@ -252,7 +252,7 @@ void LanguageClientManager::deleteClient(Client *client)
|
|||||||
managerInstance->trackClientDeletion(client);
|
managerInstance->trackClientDeletion(client);
|
||||||
|
|
||||||
if (!PluginManager::isShuttingDown())
|
if (!PluginManager::isShuttingDown())
|
||||||
emit instance()->clientRemoved(client);
|
emit instance()->clientRemoved(client, unexpected);
|
||||||
}
|
}
|
||||||
|
|
||||||
void LanguageClientManager::shutdown()
|
void LanguageClientManager::shutdown()
|
||||||
|
@@ -41,7 +41,7 @@ public:
|
|||||||
static void restartClient(Client *client);
|
static void restartClient(Client *client);
|
||||||
|
|
||||||
static void shutdownClient(Client *client);
|
static void shutdownClient(Client *client);
|
||||||
static void deleteClient(Client *client);
|
static void deleteClient(Client *client, bool unexpected = false);
|
||||||
|
|
||||||
static void shutdown();
|
static void shutdown();
|
||||||
static bool isShutdownFinished();
|
static bool isShutdownFinished();
|
||||||
@@ -87,7 +87,7 @@ public slots:
|
|||||||
signals:
|
signals:
|
||||||
void clientAdded(Client *client);
|
void clientAdded(Client *client);
|
||||||
void clientInitialized(Client *client);
|
void clientInitialized(Client *client);
|
||||||
void clientRemoved(Client *client);
|
void clientRemoved(Client *client, bool unexpected);
|
||||||
void shutdownFinished();
|
void shutdownFinished();
|
||||||
void openCallHierarchy();
|
void openCallHierarchy();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user