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:
Marcus Tillmanns
2022-12-06 10:10:16 +01:00
parent d011733131
commit bd716a16bb
2 changed files with 21 additions and 5 deletions

View File

@@ -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