LanguageClient: Avoid one use of SynchronousProcess

Change-Id: I39329a68691ad084128056c34cc41554776fd18b
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
hjk
2021-04-30 08:12:33 +02:00
parent ada1e68e35
commit e5312362c8
2 changed files with 4 additions and 6 deletions

View File

@@ -27,9 +27,6 @@
#include "languageclientsettings.h"
#include <utils/qtcprocess.h>
#include <utils/synchronousprocess.h>
#include <QLoggingCategory>
using namespace LanguageServerProtocol;
@@ -101,7 +98,7 @@ StdIOClientInterface::StdIOClientInterface()
StdIOClientInterface::~StdIOClientInterface()
{
Utils::SynchronousProcess::stopProcess(m_process);
m_process.stopProcess();
}
bool StdIOClientInterface::start()

View File

@@ -29,8 +29,9 @@
#include <languageserverprotocol/basemessage.h>
#include <utils/qtcprocess.h>
#include <QBuffer>
#include <QProcess>
namespace LanguageClient {
@@ -84,7 +85,7 @@ public:
protected:
void sendData(const QByteArray &data) final;
QProcess m_process;
Utils::QtcProcess m_process;
private:
void readError();