()
| 18 | |
| 19 | // Ability to use custom python environments for testing |
| 20 | export async function initializePython() { |
| 21 | initializeCommonNodeApi(); |
| 22 | await setPythonPathInWorkspaceRoot(PYTHON_PATH); |
| 23 | // Make sure the python extension can load if this test allows it |
| 24 | if ( |
| 25 | !process.env.VSC_JUPYTER_CI_TEST_DO_NOT_INSTALL_PYTHON_EXT && |
| 26 | process.env.VSC_JUPYTER_CI_TEST_DO_NOT_INSTALL_PYTHON_EXT !== 'false' |
| 27 | ) { |
| 28 | const extension = vscode.extensions.getExtension(PythonExtension); |
| 29 | if (!extension) { |
| 30 | console.error('Python extension not found'); |
| 31 | throw new Error('Python extension not found'); |
| 32 | } |
| 33 | await extension.activate(); |
| 34 | } |
| 35 | } |
| 36 | |
| 37 | let jupyterServerStarted = false; |
| 38 | // eslint-disable-next-line @typescript-eslint/no-explicit-any |
no test coverage detected