LanguageClient: add send configuration helper

Change-Id: If078a0354b86ca3dba5fceec94ce266424fe0c99
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
David Schulz
2022-01-13 07:52:08 +01:00
parent 97e81d35df
commit a992a3440b
2 changed files with 12 additions and 0 deletions

View File

@@ -996,6 +996,17 @@ void Client::projectClosed(ProjectExplorer::Project *project)
}
}
void Client::updateConfiguration(const QJsonValue &configuration)
{
if (m_dynamicCapabilities.isRegistered(DidChangeConfigurationNotification::methodName)
.value_or(true)) {
DidChangeConfigurationParams params;
params.setSettings(configuration);
DidChangeConfigurationNotification notification(params);
sendContent(notification);
}
}
void Client::setSupportedLanguage(const LanguageFilter &filter)
{
m_languagFilter = filter;