* Smoke tests & tests running in VSCode require Python extension to be installed.
(vscodeExecutablePath: string, extensionsDir: string, platform: DownloadPlatform)
| 93 | * Smoke tests & tests running in VSCode require Python extension to be installed. |
| 94 | */ |
| 95 | async function installPythonExtension(vscodeExecutablePath: string, extensionsDir: string, platform: DownloadPlatform) { |
| 96 | if (!requiresPythonExtensionToBeInstalled() || isNotebookPerfTestWithoutJupyter()) { |
| 97 | console.info('Python Extension not required'); |
| 98 | return; |
| 99 | } |
| 100 | const cliPath = resolveCliPathFromVSCodeExecutablePath(vscodeExecutablePath, platform); |
| 101 | await installExtension(PythonExtension, cliPath, extensionsDir, ['--pre-release']); |
| 102 | |
| 103 | // Note: Renderer extension is now integrated, no need to install it separately |
| 104 | } |
| 105 | |
| 106 | // Make sure renderers is there too as we'll use it for widget tests |
| 107 | async function installExtension(extension: string, cliPath: string, extensionsDir: string, args: string[] = []) { |
no test coverage detected