LanguageClient: check current instead of page settings

It does not make sense to check the not applied settings of the
settings page when a document gets opened.

Change-Id: I6fda0cf6c524e79e17cc25b54c41527971179f8b
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
David Schulz
2021-01-29 06:52:22 +01:00
parent 71da9d340d
commit 9759f9e169

View File

@@ -458,7 +458,7 @@ void LanguageClientManager::documentOpened(Core::IDocument *document)
return;
// check whether we have to start servers for this document
const QList<BaseSettings *> settings = LanguageClientSettings::pageSettings();
const QList<BaseSettings *> settings = currentSettings();
for (BaseSettings *setting : settings) {
QVector<Client *> clients = clientForSetting(setting);
if (setting->isValid() && setting->m_enabled