diff options
author | hjk <hjk@qt.io> | 2022-05-06 14:57:57 +0200 |
---|---|---|
committer | hjk <hjk@qt.io> | 2022-05-09 05:56:06 +0000 |
commit | 6008d05b7157b31cdc20b802f561b752f6c8ae22 (patch) | |
tree | 6e7dcca33cbbcde30dbdd0f11c0e829f2dc399a4 /src/plugins/python/pythonlanguageclient.cpp | |
parent | 07ecff38e25b806fd25612639ab5b4be9da5913c (diff) | |
download | qt-creator-6008d05b7157b31cdc20b802f561b752f6c8ae22.tar.gz |
Python: Split complex call
Change-Id: I6f301342a1841d2734f0598edfcd7b3327a943c9
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
Diffstat (limited to 'src/plugins/python/pythonlanguageclient.cpp')
-rw-r--r-- | src/plugins/python/pythonlanguageclient.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/python/pythonlanguageclient.cpp b/src/plugins/python/pythonlanguageclient.cpp index 76e6fc2cb3..887911e805 100644 --- a/src/plugins/python/pythonlanguageclient.cpp +++ b/src/plugins/python/pythonlanguageclient.cpp @@ -526,9 +526,9 @@ PyLSConfigureAssistant *PyLSConfigureAssistant::instance() const StdIOSettings *PyLSConfigureAssistant::languageServerForPython(const FilePath &python) { + const FilePath pythonModulePath = getPylsModulePath({python, {"-m", "pylsp"}}); return findOrDefault(configuredPythonLanguageServer(), - [pythonModulePath = getPylsModulePath( - CommandLine(python, {"-m", "pylsp"}))](const StdIOSettings *setting) { + [pythonModulePath](const StdIOSettings *setting) { return getPylsModulePath(setting->command()) == pythonModulePath; }); } |