diff options
| author | David Schulz <david.schulz@qt.io> | 2025-12-11 08:22:14 +0100 |
|---|---|---|
| committer | David Schulz <david.schulz@qt.io> | 2025-12-17 05:55:30 +0000 |
| commit | 8824c6f6e28f08dd36a8b80a40a0821fd19d2b3a (patch) | |
| tree | f6fdbaf0eed9dcd4a40c5e50efa2e708aee3b926 /src/plugins/python/pythonlanguageclient.cpp | |
| parent | c4e506b7853f9dc6f5422a745652f5be283228f2 (diff) | |
Python: use DataFromProcess to fetch python version output
and remove duplicated calls and caches
Change-Id: I39f73354035f2ad427e7f2360ccba7143aeb2b84
Reviewed-by: hjk <hjk@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 052ebe1d388..4a2ed9ec23b 100644 --- a/src/plugins/python/pythonlanguageclient.cpp +++ b/src/plugins/python/pythonlanguageclient.cpp @@ -390,7 +390,7 @@ void PyLSConfigureAssistant::handlePyLSState(const FilePath &python, && infoBar->canInfoBeAdded(installPylsInfoBarId)) { auto message = Tr::tr("Install Python language server (PyLS) for %1 (%2). " "The language server provides Python specific completion and annotation.") - .arg(pythonName(python), python.toUserOutput()); + .arg(pythonVersion(python), python.toUserOutput()); InfoBarEntry info(installPylsInfoBarId, message, InfoBarEntry::GlobalSuppression::Enabled); info.addCustomButton(Tr::tr("Install"), [this, python, document, state] { installPythonLanguageServer(python, document, state.pylsModulePath, false, false); @@ -400,7 +400,7 @@ void PyLSConfigureAssistant::handlePyLSState(const FilePath &python, } else if (state.state == PythonLanguageServerState::Updatable) { if (infoBar->canInfoBeAdded(updatePylsInfoBarId)) { auto message = Tr::tr("Update Python language server (PyLS) for %1 (%2).") - .arg(pythonName(python), python.toUserOutput()); + .arg(pythonVersion(python), python.toUserOutput()); InfoBarEntry info(updatePylsInfoBarId, message); info.addCustomButton( Tr::tr("Always Update"), |
