function resolveCliArgsFromVSCodeExecutablePath(vscodeExecutablePath, options) {
    var _a;
    const args = [resolveCliPathFromVSCodeExecutablePath(vscodeExecutablePath, (_a = options === null || options === void 0 ? void 0 : options.platform) !== null && _a !== void 0 ? _a : exports.systemDefaultPlatform)];
    if (!(options === null || options === void 0 ? void 0 : options.reuseMachineInstall)) {
        args.push(...runTest_1.getProfileArguments(args));
    }
    return args;
}
/**
 * Resolve the VS Code cli arguments from executable path returned from `downloadAndUnzipVSCode`.
 * You can use this path to spawn processes for extension management. For example:
 *
 * ```ts
 * const cp = require('child_process');
 * const { downloadAndUnzipVSCode, resolveCliArgsFromVSCodeExecutablePath } = require('@vscode/test-electron')
 * const vscodeExecutablePath = await downloadAndUnzipVSCode('1.36.0');
 * const [cli, ...args] = resolveCliArgsFromVSCodeExecutablePath(vscodeExecutablePath);
 *
 * cp.spawnSync(cli, [...args, '--install-extension', '<EXTENSION-ID-OR-PATH-TO-VSIX>'], {
 *   encoding: 'utf-8',
 *   stdio: 'inherit'
 * });
 * ```
 *
 * @param vscodeExecutablePath The `vscodeExecutablePath` from `downloadAndUnzipVSCode`.
 */
Resolve the VS Code cli arguments from executable path returned from `downloadAndUnzipVSCode`.
You can use this path to spawn processes for extension management. For example.






Resolve the VS Code cli arguments from executable path returned from ` downloadAndUnzipVSCode ` . You can use this path to spawn processes for extension management . For example .
function resolveCliArgsFromVSCodeExecutablePath(vscodeExecutablePath, options) {
    var _a;
    const args = [resolveCliPathFromVSCodeExecutablePath(vscodeExecutablePath, (_a = options === null || options === void 0 ? void 0 : options.platform) !== null && _a !== void 0 ? _a : exports.systemDefaultPlatform)];
    if (!(options === null || options === void 0 ? void 0 : options.reuseMachineInstall)) {
        args.push(...runTest_1.getProfileArguments(args));
    }
    return args;
}
function resolveCliArgsFromVSCodeExecutablePath ( vscodeExecutablePath , options ) { var _a ; const args = [ resolveCliPathFromVSCodeExecutablePath ( vscodeExecutablePath , ( _a = options === null || options === void 0 ? void 0 : options . platform ) !== null && _a !== void 0 ? _a : exports . systemDefaultPlatform ) ] ; if ( ! ( options === null || options === void 0 ? void 0 : options . reuseMachineInstall ) ) { args . push ( ... runTest_1 . getProfileArguments ( args ) ) ; } return args ; }
Resolve the VS Code cli arguments from executable path returned from `downloadAndUnzipVSCode`.
Resolve the VS Code cli arguments from executable path returned from ` downloadAndUnzipVSCode ` .