Commit 3f4348c8 authored by Mark Nauwelaerts's avatar Mark Nauwelaerts
Browse files

lspclient: proxy server work progress signal

parent 1f416b77
...@@ -737,6 +737,7 @@ private: ...@@ -737,6 +737,7 @@ private:
using namespace std::placeholders; using namespace std::placeholders;
server->connect(server.data(), &LSPClientServer::logMessage, this, std::bind(&self_type::onMessage, this, true, _1)); server->connect(server.data(), &LSPClientServer::logMessage, this, std::bind(&self_type::onMessage, this, true, _1));
server->connect(server.data(), &LSPClientServer::showMessage, this, std::bind(&self_type::onMessage, this, false, _1)); server->connect(server.data(), &LSPClientServer::showMessage, this, std::bind(&self_type::onMessage, this, false, _1));
server->connect(server.data(), &LSPClientServer::workDoneProgress, this, &self_type::onWorkDoneProgress);
server->connect(server.data(), &LSPClientServer::workspaceFolders, this, &self_type::onWorkspaceFolders, Qt::UniqueConnection); server->connect(server.data(), &LSPClientServer::workspaceFolders, this, &self_type::onWorkspaceFolders, Qt::UniqueConnection);
} }
serverinfo.settings = serverConfig.value(QStringLiteral("settings")); serverinfo.settings = serverConfig.value(QStringLiteral("settings"));
...@@ -973,6 +974,13 @@ private: ...@@ -973,6 +974,13 @@ private:
} }
} }
void onWorkDoneProgress(const LSPWorkDoneProgressParams &params)
{
// determine server description
auto server = dynamic_cast<LSPClientServer *>(sender());
Q_EMIT serverWorkDoneProgress(server, params);
}
QList<LSPWorkspaceFolder> currentWorkspaceFolders() QList<LSPWorkspaceFolder> currentWorkspaceFolders()
{ {
QList<LSPWorkspaceFolder> folders; QList<LSPWorkspaceFolder> folders;
......
...@@ -74,6 +74,7 @@ Q_SIGNALS: ...@@ -74,6 +74,7 @@ Q_SIGNALS:
// proxy server signals in case those are emitted very early // proxy server signals in case those are emitted very early
void serverShowMessage(LSPClientServer *server, const LSPShowMessageParams &); void serverShowMessage(LSPClientServer *server, const LSPShowMessageParams &);
void serverLogMessage(LSPClientServer *server, const LSPShowMessageParams &); void serverLogMessage(LSPClientServer *server, const LSPShowMessageParams &);
void serverWorkDoneProgress(LSPClientServer *server, const LSPWorkDoneProgressParams &);
}; };
class LSPClientRevisionSnapshot : public QObject class LSPClientRevisionSnapshot : public QObject
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment