forked from qt-creator/qt-creator
languageclient: Write errors to log file
Helps the user to better understand why his language server might have a problem. Change-Id: I9440a28cb5d0d35808b497bcdcd545d7b10597a0 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
|
||||
#include <utils/environment.h>
|
||||
#include <utils/qtcprocess.h>
|
||||
#include <utils/temporaryfile.h>
|
||||
|
||||
#include <QBuffer>
|
||||
|
||||
@@ -50,7 +51,7 @@ class LANGUAGECLIENT_EXPORT StdIOClientInterface : public BaseClientInterface
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
StdIOClientInterface() = default;
|
||||
StdIOClientInterface();
|
||||
~StdIOClientInterface() override;
|
||||
|
||||
StdIOClientInterface(const StdIOClientInterface &) = delete;
|
||||
@@ -75,6 +76,8 @@ protected:
|
||||
private:
|
||||
void readError();
|
||||
void readOutput();
|
||||
|
||||
Utils::TemporaryFile m_logFile;
|
||||
};
|
||||
|
||||
} // namespace LanguageClient
|
||||
|
||||
Reference in New Issue
Block a user