LanguageClient: Compare expanded arguments for stdio clients

Change-Id: I6b33aa6b3ddb03a1965dbda4e7e1e1724299eba1
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
David Schulz
2019-03-26 10:57:08 +01:00
parent 5327d415a3
commit 7f348c1878
3 changed files with 8 additions and 2 deletions

View File

@@ -529,9 +529,14 @@ void StdIOSettings::fromMap(const QVariantMap &map)
m_arguments = map[argumentsKey].toString();
}
QString StdIOSettings::arguments() const
{
return Utils::globalMacroExpander()->expand(m_arguments);
}
BaseClientInterface *StdIOSettings::createInterface() const
{
return new StdIOClientInterface(m_executable, Utils::globalMacroExpander()->expand(m_arguments));
return new StdIOClientInterface(m_executable, arguments());
}
static QWidget *createCapabilitiesView(