aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/python/pythonlanguageclient.h
diff options
context:
space:
mode:
authorDavid Schulz <[email protected]>2023-11-27 14:15:29 +0100
committerDavid Schulz <[email protected]>2023-12-13 11:26:16 +0000
commitfbe054116aff3ce5bd714a1982675c4ecc82d18a (patch)
treec9227e03b5cd0c8d22047df559f9f1645108e46f /src/plugins/python/pythonlanguageclient.h
parent12004190595cdf3dc567120d8310e5e8a4476385 (diff)
Python: Avoid polluting global or virtual environments with pylsp
Install the language server into the Qt Creator resource directory instead. Reuse the server for all interpreters with the same version. This also reduces the amount of editor toolbars asking the user to install a language server for a specific interpreter. Change-Id: I48ef4ad30fe0097ee8d2b855b0f278e98be5ce57 Reviewed-by: Christian Stenger <[email protected]>
Diffstat (limited to 'src/plugins/python/pythonlanguageclient.h')
-rw-r--r--src/plugins/python/pythonlanguageclient.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/python/pythonlanguageclient.h b/src/plugins/python/pythonlanguageclient.h
index d3c88f046f2..fa0fb493e78 100644
--- a/src/plugins/python/pythonlanguageclient.h
+++ b/src/plugins/python/pythonlanguageclient.h
@@ -64,7 +64,8 @@ private:
TextEditor::TextDocument *document);
void resetEditorInfoBar(TextEditor::TextDocument *document);
void installPythonLanguageServer(const Utils::FilePath &python,
- QPointer<TextEditor::TextDocument> document);
+ QPointer<TextEditor::TextDocument> document,
+ const Utils::FilePath &pylsPath);
QHash<Utils::FilePath, QList<TextEditor::TextDocument *>> m_infoBarEntries;
QHash<TextEditor::TextDocument *, QPointer<QFutureWatcher<PythonLanguageServerState>>>