forked from qt-creator/qt-creator
LanguageClient: Avoid one use of SynchronousProcess
Change-Id: I39329a68691ad084128056c34cc41554776fd18b Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user