MCPcopy Create free account
hub / github.com/deepnote/vscode-deepnote / start

Function start

src/test/standardTest.node.ts:179–204  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

177}
178
179async function start() {
180 const platform = computePlatform();
181 const vscodeExecutablePath = await downloadAndUnzipVSCode(channel, platform);
182 const baseLaunchArgs = requiresPythonExtensionToBeInstalled() ? [] : ['--disable-extensions'];
183 const userDataDirectory = await createSettings();
184 const extensionsDir = await getExtensionsDir();
185 console.error(`Using extensions development path: ${extensionDevelopmentPath}`);
186 await installPythonExtension(vscodeExecutablePath, extensionsDir, platform);
187 await runTests({
188 vscodeExecutablePath,
189 extensionDevelopmentPath: extensionDevelopmentPath,
190 extensionTestsPath: path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'out', 'test', 'index.node.js'),
191 launchArgs: baseLaunchArgs
192 .concat([workspacePath])
193 .concat(['--skip-welcome'])
194 .concat(['--skip-release-notes'])
195 .concat(['--enable-proposed-api'])
196 .concat(['--timeout', '5000'])
197 .concat(['--disable-extension', 'ms-python.isort']) // We don't need this, also has a lot of errors on CI and floods CI logs unnecessarily.
198 .concat(['--extensions-dir', extensionsDir])
199 .concat(['--user-data-dir', userDataDirectory]),
200 // .concat(['--verbose']), // Too much logging from VS Code, enable this to see what's going on in VSC.
201 version: channel,
202 extensionTestsEnv: { ...process.env, DISABLE_INSIDERS_EXTENSION: '1' }
203 });
204}
205
206const webTestSummaryJsonFile = IS_SMOKE_TEST()
207 ? path.join(__dirname, '..', '..', 'logs', 'testresults.json')

Callers 1

Calls 7

computePlatformFunction · 0.85
createSettingsFunction · 0.85
getExtensionsDirFunction · 0.85
installPythonExtensionFunction · 0.85
joinMethod · 0.80
errorMethod · 0.65

Tested by

no test coverage detected