LanguageServer: Use Utils::CommandLine in StdIOClientInterface

Change-Id: Ic2516387d7308bfad05cef54467c417cc47a7655
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
hjk
2021-04-30 08:25:10 +02:00
parent e5312362c8
commit 2f593d9db9
5 changed files with 13 additions and 20 deletions

View File

@@ -192,10 +192,10 @@ private:
LanguageClient::BaseClientInterface *JLSSettings::createInterface() const
{
auto interface = new JLSInterface();
interface->setExecutable(m_executable);
QString arguments = this->arguments();
arguments += QString(" -data \"%1\"").arg(interface->workspaceDir());
interface->setArguments(arguments);
CommandLine cmd{m_executable};
cmd.addArgs(arguments(), CommandLine::Raw);
cmd.addArgs({"-data", interface->workspaceDir()});
interface->setCommandLine(cmd);
return interface;
}