forked from qt-creator/qt-creator
LSP: use QtcProcess::splitArgs for language server arguments
Also store the executable and arguments in the stdio client to get a more accurate comparison of clients. Change-Id: I84fdd4ea5f32b17198d3f08e7f5d494f7fbe67dc Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -162,7 +162,7 @@ class StdIOClient : public BaseClient
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
StdIOClient(const QString &command, const QStringList &args = QStringList());
|
||||
StdIOClient(const QString &executable, const QString &arguments);
|
||||
~StdIOClient() override;
|
||||
|
||||
StdIOClient() = delete;
|
||||
@@ -185,6 +185,9 @@ private:
|
||||
void readError();
|
||||
void readOutput();
|
||||
void onProcessFinished(int exitCode, QProcess::ExitStatus exitStatus);
|
||||
|
||||
const QString m_executable;
|
||||
const QString m_arguments;
|
||||
};
|
||||
|
||||
} // namespace LanguageClient
|
||||
|
||||
Reference in New Issue
Block a user