forked from qt-creator/qt-creator
LanguageClient: move capabilities widget to inspector
The capabilities are not changeable for the user, but only there to check whether a server is capable of a specific task. This will also allow us to have more specialized settings widgets for specific servers like for the java language server without the need to add the capabilities to each of those special widgets. Also add the dynamic capabilities to the widget so users have a complete overview of the capabilities. Change-Id: I9f2ed6ed11b458f0d4c67be3df632fd810023286 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -68,7 +68,8 @@ public:
|
||||
void unregisterCapability(const QList<LanguageServerProtocol::Unregistration> &unregistrations);
|
||||
|
||||
Utils::optional<bool> isRegistered(const QString &method) const;
|
||||
QJsonValue option(const QString &method) const { return m_capability[method].options(); }
|
||||
QJsonValue option(const QString &method) const { return m_capability.value(method).options(); }
|
||||
QStringList registeredMethods() const;
|
||||
|
||||
void reset();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user