aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/python/pythonlanguageclient.cpp
diff options
context:
space:
mode:
authorDavid Schulz <david.schulz@qt.io>2025-05-06 10:53:54 +0200
committerDavid Schulz <david.schulz@qt.io>2025-05-06 11:37:55 +0000
commit64d2144fb5147fc99890ce7e3a6aa466ce290999 (patch)
tree528c42c6d019449c27876cf055a582e46e2db51b /src/plugins/python/pythonlanguageclient.cpp
parentf061b53b6a177f327d5b29dc501eb2c1b6aed1b6 (diff)
LSP: mark some clients as not activatable
Differentiate between normal lsp clients that can be used for tasks like completions/outline/highlight and those that just uses the protocol to have a basic document update communication and uses their own messages for specialised tasks like the copilot, coco or ai assistant server. The user should not be able to manually switch to any of those servers as the active server for the current document, so filter those servers in the editor tool bar. Task-number: QTCREATORBUG-32909 Change-Id: Idd5e1c10e613ce986a56defad02a3787aeae85b2 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Diffstat (limited to 'src/plugins/python/pythonlanguageclient.cpp')
-rw-r--r--src/plugins/python/pythonlanguageclient.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/plugins/python/pythonlanguageclient.cpp b/src/plugins/python/pythonlanguageclient.cpp
index eab9cb9dbe8..c1a244fe88f 100644
--- a/src/plugins/python/pythonlanguageclient.cpp
+++ b/src/plugins/python/pythonlanguageclient.cpp
@@ -169,7 +169,6 @@ PyLSClient *clientForPython(const FilePath &python)
interface->setCommandLine({python, {"-m", "pylsp"}});
auto client = new PyLSClient(interface);
client->setName(Tr::tr("Python Language Server (%1)").arg(python.toUserOutput()));
- client->setActivateDocumentAutomatically(true);
client->updateConfiguration();
LanguageFilter filter;
filter.mimeTypes = QStringList() << Constants::C_PY_MIMETYPE << Constants::C_PY3_MIMETYPE;