forked from qt-creator/qt-creator
LanguageClient: Add the possibility to override progress messages
... and make use of it in the clangd client. We want the progress bar for background indexing to have a better title than the plain (and non-translated) "indexing" that the clangd server sends. Change-Id: Ib75eac370e7c22f0c5bd477f4a4c423283b27e1f Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -46,6 +46,8 @@ public:
|
||||
ProgressManager();
|
||||
~ProgressManager();
|
||||
void handleProgress(const LanguageServerProtocol::ProgressParams ¶ms);
|
||||
void setTitleForToken(const LanguageServerProtocol::ProgressToken &token,
|
||||
const QString &message);
|
||||
|
||||
private:
|
||||
void beginProgress(const LanguageServerProtocol::ProgressToken &token,
|
||||
@@ -62,6 +64,7 @@ private:
|
||||
};
|
||||
|
||||
QMap<LanguageServerProtocol::ProgressToken, LanguageClientProgress> m_progress;
|
||||
QMap<LanguageServerProtocol::ProgressToken, QString> m_titles;
|
||||
};
|
||||
|
||||
} // namespace LanguageClient
|
||||
|
||||
Reference in New Issue
Block a user