LanguageClient: move current settings to manager

In preparation to have relationship between clients, settings and
project to one another in the manager.

Change-Id: I00ae15abe03c54b4a58e429d67d6ff939662cce6
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
David Schulz
2019-03-27 15:09:08 +01:00
parent 7ed924915e
commit ad703e108b
4 changed files with 54 additions and 27 deletions

View File

@@ -69,6 +69,9 @@ public:
static QList<Client *> clientsSupportingDocument(const TextEditor::TextDocument *doc);
static void applySettings();
static QList<BaseSettings *> currentSettings();
signals:
void shutdownFinished();
@@ -94,6 +97,7 @@ private:
bool m_shuttingDown = false;
QVector<Client *> m_clients;
QList<BaseSettings *> m_currentSettings; // owned
QHash<LanguageServerProtocol::MessageId, QList<Client *>> m_exclusiveRequests;
};
} // namespace LanguageClient