Display the installed Python version above the package versions in the manage packages dialog. (#19551)

This commit is contained in:
Cory Rivera
2022-05-27 14:31:40 -07:00
committed by GitHub
parent c8b3e46495
commit 7b1d34b2ce
2 changed files with 4 additions and 4 deletions

View File

@@ -82,12 +82,12 @@ export class AddNewPackageTab {
}, {
component: this.newPackagesNameLoader,
title: localize('managePackages.packageNameTitle', "Package Name")
}, {
component: this.newPackagesVersionsLoader,
title: localize('managePackages.packageVersionTitle', "Package Version")
}, {
component: this.newPackagesSummaryLoader,
title: localize('managePackages.packageSummaryTitle', "Package Summary")
}, {
component: this.newPackagesVersionsLoader,
title: localize('managePackages.packageVersionTitle', "Supported Package Versions for Python {0}", this.jupyterInstallation.installedPythonVersion)
}, {
component: this.packageInstallButton,
title: ''

View File

@@ -41,7 +41,7 @@ export class ManagePackagesDialog extends Dialog {
await this.code.waitForTextContent(packageNameSelector, packageName);
// Get the latest package version
const versionSelectBox = `${ManagePackagesDialog.dialogPage} select[aria-label="Package Version"] option`;
const versionSelectBox = `${ManagePackagesDialog.dialogPage} select[aria-label^="Supported Package Versions for Python"] option`;
let packageVersion = await this.code.waitForTextContent(versionSelectBox);
const installButton = `${ManagePackagesDialog.dialogPage} a[class="monaco-button monaco-text-button"][aria-label="Install"][aria-disabled="false"]`;