2018-07-13 12:33:46 +02:00
|
|
|
/****************************************************************************
|
|
|
|
|
**
|
|
|
|
|
** Copyright (C) 2018 The Qt Company Ltd.
|
|
|
|
|
** Contact: https://www.qt.io/licensing/
|
|
|
|
|
**
|
|
|
|
|
** This file is part of Qt Creator.
|
|
|
|
|
**
|
|
|
|
|
** Commercial License Usage
|
|
|
|
|
** Licensees holding valid commercial Qt licenses may use this file in
|
|
|
|
|
** accordance with the commercial license agreement provided with the
|
|
|
|
|
** Software or, alternatively, in accordance with the terms contained in
|
|
|
|
|
** a written agreement between you and The Qt Company. For licensing terms
|
|
|
|
|
** and conditions see https://www.qt.io/terms-conditions. For further
|
|
|
|
|
** information use the contact form at https://www.qt.io/contact-us.
|
|
|
|
|
**
|
|
|
|
|
** GNU General Public License Usage
|
|
|
|
|
** Alternatively, this file may be used under the terms of the GNU
|
|
|
|
|
** General Public License version 3 as published by the Free Software
|
|
|
|
|
** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
|
|
|
|
|
** included in the packaging of this file. Please review the following
|
|
|
|
|
** information to ensure the GNU General Public License requirements will
|
|
|
|
|
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
|
|
|
|
|
**
|
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2020-09-09 08:15:11 +02:00
|
|
|
#include "diagnosticmanager.h"
|
2019-04-04 14:36:28 +02:00
|
|
|
#include "documentsymbolcache.h"
|
2018-07-13 12:33:46 +02:00
|
|
|
#include "dynamiccapabilities.h"
|
2019-09-18 14:43:08 +02:00
|
|
|
#include "languageclient_global.h"
|
2019-01-29 13:20:58 +01:00
|
|
|
#include "languageclientcompletionassist.h"
|
2020-01-08 12:03:54 +01:00
|
|
|
#include "languageclientformatter.h"
|
2019-05-17 14:37:06 +02:00
|
|
|
#include "languageclientfunctionhint.h"
|
2020-01-08 12:03:54 +01:00
|
|
|
#include "languageclienthoverhandler.h"
|
2019-01-29 13:20:58 +01:00
|
|
|
#include "languageclientquickfix.h"
|
2018-07-13 12:33:46 +02:00
|
|
|
#include "languageclientsettings.h"
|
2020-05-06 10:26:31 +02:00
|
|
|
#include "languageclientsymbolsupport.h"
|
2021-02-02 09:50:56 +01:00
|
|
|
#include "progressmanager.h"
|
2021-02-25 12:54:14 +01:00
|
|
|
#include "semantichighlightsupport.h"
|
2018-07-13 12:33:46 +02:00
|
|
|
|
|
|
|
|
#include <coreplugin/messagemanager.h>
|
2020-06-26 13:59:38 +02:00
|
|
|
|
|
|
|
|
#include <utils/id.h>
|
2018-07-13 12:33:46 +02:00
|
|
|
#include <utils/link.h>
|
|
|
|
|
|
2019-02-01 14:08:02 +01:00
|
|
|
#include <languageserverprotocol/client.h>
|
|
|
|
|
#include <languageserverprotocol/diagnostics.h>
|
2018-07-13 12:33:46 +02:00
|
|
|
#include <languageserverprotocol/initializemessages.h>
|
2019-02-01 14:08:02 +01:00
|
|
|
#include <languageserverprotocol/languagefeatures.h>
|
|
|
|
|
#include <languageserverprotocol/messages.h>
|
2021-02-02 09:50:56 +01:00
|
|
|
#include <languageserverprotocol/progresssupport.h>
|
2021-02-25 12:54:14 +01:00
|
|
|
#include <languageserverprotocol/semantictokens.h>
|
2018-07-13 12:33:46 +02:00
|
|
|
#include <languageserverprotocol/shutdownmessages.h>
|
|
|
|
|
#include <languageserverprotocol/textsynchronization.h>
|
|
|
|
|
|
2019-06-12 12:55:06 +02:00
|
|
|
#include <texteditor/semantichighlighter.h>
|
|
|
|
|
|
2018-07-13 12:33:46 +02:00
|
|
|
#include <QBuffer>
|
|
|
|
|
#include <QHash>
|
|
|
|
|
#include <QProcess>
|
|
|
|
|
#include <QJsonDocument>
|
|
|
|
|
#include <QTextCursor>
|
|
|
|
|
|
2021-09-14 12:13:56 +02:00
|
|
|
#include <unordered_map>
|
|
|
|
|
|
2018-07-13 12:33:46 +02:00
|
|
|
namespace Core { class IDocument; }
|
|
|
|
|
namespace ProjectExplorer { class Project; }
|
|
|
|
|
namespace TextEditor
|
|
|
|
|
{
|
2020-03-26 09:21:57 +01:00
|
|
|
class IAssistProcessor;
|
2019-02-01 14:08:02 +01:00
|
|
|
class TextDocument;
|
|
|
|
|
class TextEditorWidget;
|
2018-07-13 12:33:46 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
namespace LanguageClient {
|
|
|
|
|
|
2019-01-31 08:46:23 +01:00
|
|
|
class BaseClientInterface;
|
|
|
|
|
|
2019-09-18 14:43:08 +02:00
|
|
|
class LANGUAGECLIENT_EXPORT Client : public QObject
|
2018-07-13 12:33:46 +02:00
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
2019-01-31 12:15:43 +01:00
|
|
|
explicit Client(BaseClientInterface *clientInterface); // takes ownership
|
|
|
|
|
~Client() override;
|
2018-07-13 12:33:46 +02:00
|
|
|
|
2019-01-31 12:15:43 +01:00
|
|
|
Client(const Client &) = delete;
|
|
|
|
|
Client(Client &&) = delete;
|
|
|
|
|
Client &operator=(const Client &) = delete;
|
|
|
|
|
Client &operator=(Client &&) = delete;
|
2018-07-13 12:33:46 +02:00
|
|
|
|
2021-02-15 12:01:53 +01:00
|
|
|
// basic properties
|
|
|
|
|
Utils::Id id() const { return m_id; }
|
|
|
|
|
void setName(const QString &name) { m_displayName = name; }
|
2021-02-23 09:22:11 +01:00
|
|
|
QString name() const;
|
2021-07-08 12:11:15 +02:00
|
|
|
|
|
|
|
|
enum class SendDocUpdates { Send, Ignore };
|
|
|
|
|
void sendContent(const LanguageServerProtocol::IContent &content,
|
|
|
|
|
SendDocUpdates sendUpdates = SendDocUpdates::Send);
|
|
|
|
|
|
2021-02-15 12:01:53 +01:00
|
|
|
void cancelRequest(const LanguageServerProtocol::MessageId &id);
|
|
|
|
|
|
|
|
|
|
// server state handling
|
|
|
|
|
void start();
|
|
|
|
|
void setInitializationOptions(const QJsonObject& initializationOptions);
|
|
|
|
|
void initialize();
|
|
|
|
|
bool reset();
|
|
|
|
|
void shutdown();
|
2018-07-13 12:33:46 +02:00
|
|
|
enum State {
|
|
|
|
|
Uninitialized,
|
|
|
|
|
InitializeRequested,
|
|
|
|
|
Initialized,
|
|
|
|
|
ShutdownRequested,
|
|
|
|
|
Shutdown,
|
|
|
|
|
Error
|
|
|
|
|
};
|
|
|
|
|
State state() const;
|
|
|
|
|
bool reachable() const { return m_state == Initialized; }
|
|
|
|
|
|
2021-02-15 12:01:53 +01:00
|
|
|
// capabilities
|
2021-02-23 13:51:41 +01:00
|
|
|
static LanguageServerProtocol::ClientCapabilities defaultClientCapabilities();
|
|
|
|
|
void setClientCapabilities(const LanguageServerProtocol::ClientCapabilities &caps);
|
2021-02-15 12:01:53 +01:00
|
|
|
const LanguageServerProtocol::ServerCapabilities &capabilities() const;
|
2021-04-28 09:25:25 +02:00
|
|
|
QString serverName() const { return m_serverName; }
|
|
|
|
|
QString serverVersion() const { return m_serverVersion; }
|
2021-02-15 12:01:53 +01:00
|
|
|
const DynamicCapabilities &dynamicCapabilities() const;
|
|
|
|
|
void registerCapabilities(const QList<LanguageServerProtocol::Registration> ®istrations);
|
|
|
|
|
void unregisterCapabilities(const QList<LanguageServerProtocol::Unregistration> &unregistrations);
|
|
|
|
|
|
2021-02-23 13:51:41 +01:00
|
|
|
void setLocatorsEnabled(bool enabled) { m_locatorsEnabled = enabled; }
|
|
|
|
|
bool locatorsEnabled() const { return m_locatorsEnabled; }
|
2021-08-11 11:20:42 +02:00
|
|
|
void setAutoRequestCodeActions(bool enabled) { m_autoRequestCodeActions = enabled; }
|
2021-02-23 13:51:41 +01:00
|
|
|
|
2018-07-13 12:33:46 +02:00
|
|
|
// document synchronization
|
2021-02-15 12:01:53 +01:00
|
|
|
void setSupportedLanguage(const LanguageFilter &filter);
|
2021-04-20 11:40:24 +02:00
|
|
|
void setActivateDocumentAutomatically(bool enabled);
|
2021-02-15 12:01:53 +01:00
|
|
|
bool isSupportedDocument(const TextEditor::TextDocument *document) const;
|
|
|
|
|
bool isSupportedFile(const Utils::FilePath &filePath, const QString &mimeType) const;
|
|
|
|
|
bool isSupportedUri(const LanguageServerProtocol::DocumentUri &uri) const;
|
2019-09-10 08:03:58 +02:00
|
|
|
void openDocument(TextEditor::TextDocument *document);
|
2019-09-11 11:15:39 +02:00
|
|
|
void closeDocument(TextEditor::TextDocument *document);
|
2019-09-10 08:03:58 +02:00
|
|
|
void activateDocument(TextEditor::TextDocument *document);
|
|
|
|
|
void deactivateDocument(TextEditor::TextDocument *document);
|
2020-01-08 12:03:54 +01:00
|
|
|
bool documentOpen(const TextEditor::TextDocument *document) const;
|
2021-04-29 15:39:37 +02:00
|
|
|
TextEditor::TextDocument *documentForFilePath(const Utils::FilePath &file) const;
|
2019-09-11 11:15:39 +02:00
|
|
|
void documentContentsSaved(TextEditor::TextDocument *document);
|
2018-07-13 12:33:46 +02:00
|
|
|
void documentWillSave(Core::IDocument *document);
|
2019-04-02 10:49:23 +02:00
|
|
|
void documentContentsChanged(TextEditor::TextDocument *document,
|
|
|
|
|
int position,
|
|
|
|
|
int charsRemoved,
|
|
|
|
|
int charsAdded);
|
2018-07-13 12:33:46 +02:00
|
|
|
void cursorPositionChanged(TextEditor::TextEditorWidget *widget);
|
2021-02-15 12:01:53 +01:00
|
|
|
bool documentUpdatePostponed(const Utils::FilePath &fileName) const;
|
2021-06-14 11:47:04 +02:00
|
|
|
int documentVersion(const Utils::FilePath &filePath) const;
|
2021-08-12 12:00:58 +02:00
|
|
|
void setDocumentChangeUpdateThreshold(int msecs);
|
2018-07-13 12:33:46 +02:00
|
|
|
|
2021-02-15 12:01:53 +01:00
|
|
|
// workspace control
|
2021-02-22 12:09:52 +01:00
|
|
|
virtual void setCurrentProject(ProjectExplorer::Project *project);
|
2021-09-23 12:11:31 +02:00
|
|
|
ProjectExplorer::Project *project() const;
|
2021-02-22 12:09:52 +01:00
|
|
|
virtual void projectOpened(ProjectExplorer::Project *project);
|
|
|
|
|
virtual void projectClosed(ProjectExplorer::Project *project);
|
2020-05-06 10:26:31 +02:00
|
|
|
|
2021-02-15 12:01:53 +01:00
|
|
|
// commands
|
2019-01-25 09:48:44 +01:00
|
|
|
void requestCodeActions(const LanguageServerProtocol::DocumentUri &uri,
|
|
|
|
|
const QList<LanguageServerProtocol::Diagnostic> &diagnostics);
|
2019-01-29 13:20:58 +01:00
|
|
|
void requestCodeActions(const LanguageServerProtocol::CodeActionRequest &request);
|
2019-01-25 09:48:44 +01:00
|
|
|
void handleCodeActionResponse(const LanguageServerProtocol::CodeActionRequest::Response &response,
|
|
|
|
|
const LanguageServerProtocol::DocumentUri &uri);
|
2021-02-12 14:05:10 +01:00
|
|
|
virtual void executeCommand(const LanguageServerProtocol::Command &command);
|
2019-01-25 09:48:44 +01:00
|
|
|
|
2021-02-15 12:01:53 +01:00
|
|
|
// language support
|
2020-03-26 09:21:57 +01:00
|
|
|
void addAssistProcessor(TextEditor::IAssistProcessor *processor);
|
|
|
|
|
void removeAssistProcessor(TextEditor::IAssistProcessor *processor);
|
2021-02-15 12:01:53 +01:00
|
|
|
SymbolSupport &symbolSupport();
|
|
|
|
|
DocumentSymbolCache *documentSymbolCache();
|
|
|
|
|
HoverHandler *hoverHandler();
|
2019-01-29 13:20:58 +01:00
|
|
|
QList<LanguageServerProtocol::Diagnostic> diagnosticsAt(
|
|
|
|
|
const LanguageServerProtocol::DocumentUri &uri,
|
2021-02-01 14:16:34 +01:00
|
|
|
const QTextCursor &cursor) const;
|
2021-06-02 17:51:31 +02:00
|
|
|
bool hasDiagnostic(const LanguageServerProtocol::DocumentUri &uri,
|
|
|
|
|
const LanguageServerProtocol::Diagnostic &diag) const;
|
|
|
|
|
void setDiagnosticsHandlers(const TextMarkCreator &textMarkCreator,
|
|
|
|
|
const HideDiagnosticsHandler &hideHandler);
|
2021-06-09 09:47:26 +02:00
|
|
|
void setSemanticTokensHandler(const SemanticTokensHandler &handler);
|
2021-06-08 14:28:25 +02:00
|
|
|
void setSymbolStringifier(const LanguageServerProtocol::SymbolStringifier &stringifier);
|
|
|
|
|
LanguageServerProtocol::SymbolStringifier symbolStringifier() const;
|
2021-06-18 16:30:03 +02:00
|
|
|
void setSnippetsGroup(const QString &group);
|
2021-09-13 16:09:04 +02:00
|
|
|
void setCompletionAssistProvider(LanguageClientCompletionAssistProvider *provider);
|
2019-01-29 13:20:58 +01:00
|
|
|
|
2021-02-15 12:01:53 +01:00
|
|
|
// logging
|
2021-10-15 10:40:02 +02:00
|
|
|
enum class LogTarget { Console, Ui };
|
|
|
|
|
void setLogTarget(LogTarget target) { m_logTarget = target; }
|
2021-02-15 12:01:53 +01:00
|
|
|
void log(const QString &message) const;
|
|
|
|
|
template<typename Error>
|
|
|
|
|
void log(const LanguageServerProtocol::ResponseError<Error> &responseError) const
|
|
|
|
|
{ log(responseError.toString()); }
|
2020-06-17 14:15:13 +02:00
|
|
|
|
2018-07-13 12:33:46 +02:00
|
|
|
signals:
|
2021-02-11 09:32:11 +01:00
|
|
|
void initialized(const LanguageServerProtocol::ServerCapabilities &capabilities);
|
|
|
|
|
void capabilitiesChanged(const DynamicCapabilities &capabilities);
|
2020-06-17 14:15:13 +02:00
|
|
|
void documentUpdated(TextEditor::TextDocument *document);
|
2021-04-20 15:46:35 +02:00
|
|
|
void workDone(const LanguageServerProtocol::ProgressToken &token);
|
2018-07-13 12:33:46 +02:00
|
|
|
void finished();
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
void setError(const QString &message);
|
2021-04-20 15:13:10 +02:00
|
|
|
void setProgressTitleForToken(const LanguageServerProtocol::ProgressToken &token,
|
|
|
|
|
const QString &message);
|
2019-01-31 08:46:23 +01:00
|
|
|
void handleMessage(const LanguageServerProtocol::BaseMessage &message);
|
2021-06-02 17:51:31 +02:00
|
|
|
virtual void handleDiagnostics(const LanguageServerProtocol::PublishDiagnosticsParams ¶ms);
|
2018-07-13 12:33:46 +02:00
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
void handleResponse(const LanguageServerProtocol::MessageId &id, const QByteArray &content,
|
|
|
|
|
QTextCodec *codec);
|
2020-10-19 10:15:20 +02:00
|
|
|
void handleMethod(const QString &method, const LanguageServerProtocol::MessageId &id,
|
2018-07-13 12:33:46 +02:00
|
|
|
const LanguageServerProtocol::IContent *content);
|
|
|
|
|
|
2019-06-12 12:55:06 +02:00
|
|
|
void handleSemanticHighlight(const LanguageServerProtocol::SemanticHighlightingParams ¶ms);
|
2019-02-01 14:08:02 +01:00
|
|
|
|
2019-09-18 14:26:08 +02:00
|
|
|
void initializeCallback(const LanguageServerProtocol::InitializeRequest::Response &initResponse);
|
2018-11-20 07:45:22 +01:00
|
|
|
void shutDownCallback(const LanguageServerProtocol::ShutdownRequest::Response &shutdownResponse);
|
2018-07-13 12:33:46 +02:00
|
|
|
bool sendWorkspceFolderChanges() const;
|
2020-12-17 10:24:33 +01:00
|
|
|
void log(const LanguageServerProtocol::ShowMessageParams &message);
|
2018-09-12 10:24:02 +02:00
|
|
|
|
|
|
|
|
void showMessageBox(const LanguageServerProtocol::ShowMessageRequestParams &message,
|
|
|
|
|
const LanguageServerProtocol::MessageId &id);
|
2018-07-13 12:33:46 +02:00
|
|
|
|
2019-02-01 14:08:02 +01:00
|
|
|
void removeDiagnostics(const LanguageServerProtocol::DocumentUri &uri);
|
2019-09-10 08:03:36 +02:00
|
|
|
void resetAssistProviders(TextEditor::TextDocument *document);
|
2021-09-14 13:16:43 +02:00
|
|
|
|
2021-09-14 17:00:16 +02:00
|
|
|
void sendPostponedDocumentUpdates(Schedule semanticTokensSchedule);
|
2019-02-01 14:08:02 +01:00
|
|
|
|
2021-01-20 12:46:07 +01:00
|
|
|
void updateCompletionProvider(TextEditor::TextDocument *document);
|
2021-01-22 09:53:50 +01:00
|
|
|
void updateFunctionHintProvider(TextEditor::TextDocument *document);
|
2021-01-20 12:46:07 +01:00
|
|
|
|
2021-03-12 13:49:13 +01:00
|
|
|
void requestDocumentHighlights(TextEditor::TextEditorWidget *widget);
|
2021-02-25 12:54:14 +01:00
|
|
|
LanguageServerProtocol::SemanticRequestTypes supportedSemanticRequests(TextEditor::TextDocument *document) const;
|
|
|
|
|
void handleSemanticTokens(const LanguageServerProtocol::SemanticTokens &tokens);
|
2021-02-15 12:01:53 +01:00
|
|
|
void rehighlight();
|
|
|
|
|
|
2021-06-09 09:47:26 +02:00
|
|
|
virtual void handleDocumentClosed(TextEditor::TextDocument *) {}
|
2021-09-27 16:24:37 +02:00
|
|
|
virtual void handleDocumentOpened(TextEditor::TextDocument *) {}
|
2021-06-09 09:47:26 +02:00
|
|
|
|
2018-07-13 12:33:46 +02:00
|
|
|
using ContentHandler = std::function<void(const QByteArray &, QTextCodec *, QString &,
|
|
|
|
|
LanguageServerProtocol::ResponseHandlers,
|
|
|
|
|
LanguageServerProtocol::MethodHandler)>;
|
|
|
|
|
|
|
|
|
|
State m_state = Uninitialized;
|
2020-10-29 12:38:05 +01:00
|
|
|
QHash<LanguageServerProtocol::MessageId,
|
|
|
|
|
LanguageServerProtocol::ResponseHandler::Callback> m_responseHandlers;
|
2018-07-13 12:33:46 +02:00
|
|
|
QHash<QByteArray, ContentHandler> m_contentHandler;
|
|
|
|
|
QString m_displayName;
|
2018-10-10 14:26:57 +02:00
|
|
|
LanguageFilter m_languagFilter;
|
2020-05-09 02:51:19 +02:00
|
|
|
QJsonObject m_initializationOptions;
|
2019-09-11 14:31:20 +02:00
|
|
|
QMap<TextEditor::TextDocument *, QString> m_openedDocument;
|
2021-08-11 12:37:52 +02:00
|
|
|
QSet<TextEditor::TextDocument *> m_postponedDocuments;
|
2021-06-14 11:47:04 +02:00
|
|
|
QMap<Utils::FilePath, int> m_documentVersions;
|
2021-09-14 12:13:56 +02:00
|
|
|
std::unordered_map<TextEditor::TextDocument *,
|
2020-06-17 14:15:13 +02:00
|
|
|
QList<LanguageServerProtocol::DidChangeTextDocumentParams::TextDocumentContentChangeEvent>>
|
|
|
|
|
m_documentsToUpdate;
|
2021-03-12 13:49:13 +01:00
|
|
|
QMap<TextEditor::TextEditorWidget *, QTimer *> m_documentHighlightsTimer;
|
2020-06-17 14:15:13 +02:00
|
|
|
QTimer m_documentUpdateTimer;
|
2020-06-26 13:59:38 +02:00
|
|
|
Utils::Id m_id;
|
2021-02-23 13:51:41 +01:00
|
|
|
LanguageServerProtocol::ClientCapabilities m_clientCapabilities = defaultClientCapabilities();
|
2018-07-13 12:33:46 +02:00
|
|
|
LanguageServerProtocol::ServerCapabilities m_serverCapabilities;
|
|
|
|
|
DynamicCapabilities m_dynamicCapabilities;
|
2019-09-10 08:03:36 +02:00
|
|
|
struct AssistProviders
|
|
|
|
|
{
|
|
|
|
|
QPointer<TextEditor::CompletionAssistProvider> completionAssistProvider;
|
|
|
|
|
QPointer<TextEditor::CompletionAssistProvider> functionHintProvider;
|
|
|
|
|
QPointer<TextEditor::IAssistProvider> quickFixAssistProvider;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
AssistProviders m_clientProviders;
|
|
|
|
|
QMap<TextEditor::TextDocument *, AssistProviders> m_resetAssistProvider;
|
2021-03-30 10:27:02 +02:00
|
|
|
QHash<TextEditor::TextEditorWidget *, LanguageServerProtocol::MessageId> m_highlightRequests;
|
2018-09-14 10:00:29 +02:00
|
|
|
int m_restartsLeft = 5;
|
2019-01-31 08:46:23 +01:00
|
|
|
QScopedPointer<BaseClientInterface> m_clientInterface;
|
2020-09-09 08:15:11 +02:00
|
|
|
DiagnosticManager m_diagnosticManager;
|
2019-04-04 14:36:28 +02:00
|
|
|
DocumentSymbolCache m_documentSymbolCache;
|
2019-05-15 11:19:31 +02:00
|
|
|
HoverHandler m_hoverHandler;
|
2019-06-12 12:55:06 +02:00
|
|
|
QHash<LanguageServerProtocol::DocumentUri, TextEditor::HighlightingResults> m_highlights;
|
2021-09-23 12:11:31 +02:00
|
|
|
ProjectExplorer::Project *m_project = nullptr;
|
2020-03-26 09:21:57 +01:00
|
|
|
QSet<TextEditor::IAssistProcessor *> m_runningAssistProcessors;
|
2020-05-06 10:26:31 +02:00
|
|
|
SymbolSupport m_symbolSupport;
|
2021-02-02 09:50:56 +01:00
|
|
|
ProgressManager m_progressManager;
|
2021-04-20 11:40:24 +02:00
|
|
|
bool m_activateDocAutomatically = false;
|
2021-08-09 14:45:57 +02:00
|
|
|
SemanticTokenSupport m_tokenSupport;
|
2021-04-28 09:25:25 +02:00
|
|
|
QString m_serverName;
|
|
|
|
|
QString m_serverVersion;
|
2021-06-08 14:28:25 +02:00
|
|
|
LanguageServerProtocol::SymbolStringifier m_symbolStringifier;
|
2021-10-15 10:40:02 +02:00
|
|
|
LogTarget m_logTarget = LogTarget::Ui;
|
2021-02-23 13:51:41 +01:00
|
|
|
bool m_locatorsEnabled = true;
|
2021-08-11 11:20:42 +02:00
|
|
|
bool m_autoRequestCodeActions = true;
|
2018-07-13 12:33:46 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace LanguageClient
|