Add custom width to Python wizard to reduce wasted space. (#10705) (#10755)

* Also use double quotes for localize calls in the wizard.
This commit is contained in:
Cory Rivera
2020-06-05 12:17:00 -07:00
committed by GitHub
parent ca7ee35993
commit b6be7f1218

View File

@@ -63,13 +63,13 @@ export class ConfigurePythonWizard {
let wizardTitle: string;
if (kernelName) {
wizardTitle = localize('configurePython.wizardNameWithKernel', 'Configure Python to run {0} kernel', kernelName);
wizardTitle = localize('configurePython.wizardNameWithKernel', "Configure Python to run {0} kernel", kernelName);
} else {
wizardTitle = localize('configurePython.wizardNameWithoutKernel', 'Configure Python to run kernels');
wizardTitle = localize('configurePython.wizardNameWithoutKernel', "Configure Python to run kernels");
}
this._wizard = azdata.window.createWizard(wizardTitle);
let page0 = azdata.window.createWizardPage(localize('configurePython.page0Name', 'Configure Python Runtime'));
let page1 = azdata.window.createWizardPage(localize('configurePython.page1Name', 'Install Dependencies'));
this._wizard = azdata.window.createWizard(wizardTitle, 600);
let page0 = azdata.window.createWizardPage(localize('configurePython.page0Name', "Configure Python Runtime"));
let page1 = azdata.window.createWizardPage(localize('configurePython.page1Name', "Install Dependencies"));
page0.registerContent(async (view) => {
let configurePathPage = new ConfigurePathPage(this.apiWrapper, this, page0, this.model, view);