summaryrefslogtreecommitdiff
path: root/src/plugins/python/pythonplugin.cpp
diff options
context:
space:
mode:
authorDavid Schulz <david.schulz@qt.io>2021-12-13 15:30:21 +0100
committerDavid Schulz <david.schulz@qt.io>2022-01-18 13:21:53 +0000
commit7f4342b687f736b51ec194eb714a2ddccfbea35e (patch)
tree0c32da0d19cf36fe7df663b1dd18fc2bb09366ad /src/plugins/python/pythonplugin.cpp
parentee4ed51a5740c121312522f6091d0fb70db457ab (diff)
downloadqt-creator-7f4342b687f736b51ec194eb714a2ddccfbea35e.tar.gz
Python: add python specific language client settings
Change-Id: I1b9a194f32f3f13381954539229b02e03e3af058 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/plugins/python/pythonplugin.cpp')
-rw-r--r--src/plugins/python/pythonplugin.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/plugins/python/pythonplugin.cpp b/src/plugins/python/pythonplugin.cpp
index dc89abf2b0..15b656b2e4 100644
--- a/src/plugins/python/pythonplugin.cpp
+++ b/src/plugins/python/pythonplugin.cpp
@@ -25,6 +25,7 @@
#include "pythonplugin.h"
+#include "pythonconstants.h"
#include "pythoneditor.h"
#include "pythonlanguageclient.h"
#include "pythonproject.h"
@@ -71,6 +72,10 @@ public:
PythonPlugin::PythonPlugin()
{
m_instance = this;
+
+ LanguageClient::LanguageClientSettings::registerClientType({Constants::PYLS_SETTINGS_ID,
+ tr("Python Language Server"),
+ []() { return new PyLSSettings; }});
}
PythonPlugin::~PythonPlugin()
@@ -102,7 +107,7 @@ void PythonPlugin::extensionsInitialized()
{
// Add MIME overlay icons (these icons displayed at Project dock panel)
QString imageFile = Utils::creatorTheme()->imageFile(Utils::Theme::IconOverlayPro,
- Constants::FILEOVERLAY_PY);
+ ::Constants::FILEOVERLAY_PY);
Core::FileIconProvider::registerIconOverlayForSuffix(imageFile, "py");
TaskHub::addCategory(PythonErrorTaskCategory, "Python", true);