forked from qt-creator/qt-creator
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:
@@ -458,7 +458,7 @@ void LanguageClientManager::documentOpened(Core::IDocument *document)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
// check whether we have to start servers for this document
|
// 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) {
|
for (BaseSettings *setting : settings) {
|
||||||
QVector<Client *> clients = clientForSetting(setting);
|
QVector<Client *> clients = clientForSetting(setting);
|
||||||
if (setting->isValid() && setting->m_enabled
|
if (setting->isValid() && setting->m_enabled
|
||||||
|
Reference in New Issue
Block a user