async function runTests(options) {
    if (!options.vscodeExecutablePath) {
        options.vscodeExecutablePath = await download_1.downloadAndUnzipVSCode(options);
    }
    let args = [
        // https://github.com/microsoft/vscode/issues/84238
        '--no-sandbox',
        // https://github.com/microsoft/vscode-test/issues/120
        '--disable-updates',
        '--skip-welcome',
        '--skip-release-notes',
        '--disable-workspace-trust',
        '--extensionDevelopmentPath=' + options.extensionDevelopmentPath,
        '--extensionTestsPath=' + options.extensionTestsPath
    ];
    if (options.launchArgs) {
        args = options.launchArgs.concat(args);
    }
    if (!options.reuseMachineInstall) {
        args.push(...getProfileArguments(args));
    }
    return innerRunTests(options.vscodeExecutablePath, args, options.extensionTestsEnv);
}
/**
 * Run VS Code extension test
 *
 * @returns The exit code of the command to launch VS Code extension test
 */
Run VS Code extension test
@returns The exit code of the command to launch VS Code extension test
Run VS Code extension test @returns The exit code of the command to launch VS Code extension test
async function runTests(options) {
    if (!options.vscodeExecutablePath) {
        options.vscodeExecutablePath = await download_1.downloadAndUnzipVSCode(options);
    }
    let args = [
        '--no-sandbox',
        '--disable-updates',
        '--skip-welcome',
        '--skip-release-notes',
        '--disable-workspace-trust',
        '--extensionDevelopmentPath=' + options.extensionDevelopmentPath,
        '--extensionTestsPath=' + options.extensionTestsPath
    ];
    if (options.launchArgs) {
        args = options.launchArgs.concat(args);
    }
    if (!options.reuseMachineInstall) {
        args.push(...getProfileArguments(args));
    }
    return innerRunTests(options.vscodeExecutablePath, args, options.extensionTestsEnv);
}
async function runTests ( options ) { if ( ! options . vscodeExecutablePath ) { options . vscodeExecutablePath = await download_1 . downloadAndUnzipVSCode ( options ) ; } let args = [ '--no-sandbox' , '--disable-updates' , '--skip-welcome' , '--skip-release-notes' , '--disable-workspace-trust' , '--extensionDevelopmentPath=' + options . extensionDevelopmentPath , '--extensionTestsPath=' + options . extensionTestsPath ] ; if ( options . launchArgs ) { args = options . launchArgs . concat ( args ) ; } if ( ! options . reuseMachineInstall ) { args . push ( ... getProfileArguments ( args ) ) ; } return innerRunTests ( options . vscodeExecutablePath , args , options . extensionTestsEnv ) ; }
Run VS Code extension test
 @returns The exit code of the command to launch VS Code extension test
Run VS Code extension test @returns The exit code of the command to launch VS Code extension test
// https://github.com/microsoft/vscode/issues/84238 // https://github.com/microsoft/vscode-test/issues/120