Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qlanguageserver_p.h
Go to the documentation of this file.
1// Copyright (C) 2021 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3// Qt-Security score:significant reason:default
4
5#ifndef QLANGUAGESERVER_P_H
6#define QLANGUAGESERVER_P_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists purely as an
13// implementation detail. This header file may change from version to
14// version without notice, or even be removed.
15//
16// We mean it.
17//
18
19#include <QtLanguageServer/private/qlanguageserverspec_p.h>
20#include <QtLanguageServer/private/qlanguageserverprotocol_p.h>
21#include <QtLanguageServer/private/qlspnotifysignals_p.h>
22#include <QtCore/qloggingcategory.h>
23
24QT_BEGIN_NAMESPACE
25
26class QLanguageServer;
28Q_DECLARE_LOGGING_CATEGORY(lspServerLog)
29
31{
33public:
36 virtual void setupCapabilities(QLspSpecification::ServerCapabilities &) = 0;
37};
38
40{
42public:
53
55 void registerHandlers(QLanguageServerProtocol *protocol);
56 void registerModule(QLanguageServerModule *serverModule);
58
59 // API
60 RunStatus runStatus() const;
62
63public Q_SLOTS:
64 void receiveData(const QByteArray &d, bool isEndOfMessage);
67 void exit();
70
71private:
72 void registerMethods(QJsonRpc::TypedRpc &typedRpc);
73 void executeShutdown();
75};
76
77QT_END_NAMESPACE
78
79#endif // QLANGUAGESERVER_P_H
virtual void setupCapabilities(QLspSpecification::ServerCapabilities &)=0
Implements a server for the language server protocol.
void registerHandlers(QLanguageServerProtocol *protocol)
const QLspSpecification::InitializeParams & clientInfo() const
void lifecycleError()
void registerModule(QLanguageServerModule *serverModule)
QLspNotifySignals * notifySignals()
RunStatus runStatus() const
void readNextMessage()
void typeDefinitionRequestHandler(const QByteArray &, const QLspSpecification::TypeDefinitionParams &params, ReferencesRequest::Response &&response)
void registerHandlers(QLanguageServer *server, QLanguageServerProtocol *protocol) override
void process(RequestPointerArgument request) override
void setupCapabilities(QLspSpecification::ServerCapabilities &caps) override
Combined button and popup list for selecting options.
This class sends a result or an error when going out of scope.