function resolveCliPathFromVSCodeExecutablePath(vscodeExecutablePath, platform) {
    if (platform === 'win32-archive' || platform === 'win32-x64-archive') {
        if (vscodeExecutablePath.endsWith('Code - Insiders.exe')) {
            return path.resolve(vscodeExecutablePath, '../bin/code-insiders.cmd');
        }
        else {
            return path.resolve(vscodeExecutablePath, '../bin/code.cmd');
        }
    }
    else if (platform === 'darwin') {
        return path.resolve(vscodeExecutablePath, '../../../Contents/Resources/app/bin/code');
    }
    else {
        if (vscodeExecutablePath.endsWith('code-insiders')) {
            return path.resolve(vscodeExecutablePath, '../bin/code-insiders');
        }
        else {
            return path.resolve(vscodeExecutablePath, '../bin/code');
        }
    }
}
/**
 * Resolve the VS Code cli path from executable path returned from `downloadAndUnzipVSCode`.
 * Usually you will want {@link resolveCliArgsFromVSCodeExecutablePath} instead.
 */
Resolve the VS Code cli path from executable path returned from `downloadAndUnzipVSCode`.
Usually you will want  resolveCliArgsFromVSCodeExecutablePath instead.
Resolve the VS Code cli path from executable path returned from ` downloadAndUnzipVSCode ` . Usually you will want resolveCliArgsFromVSCodeExecutablePath instead .
function resolveCliPathFromVSCodeExecutablePath(vscodeExecutablePath, platform) {
    if (platform === 'win32-archive' || platform === 'win32-x64-archive') {
        if (vscodeExecutablePath.endsWith('Code - Insiders.exe')) {
            return path.resolve(vscodeExecutablePath, '../bin/code-insiders.cmd');
        }
        else {
            return path.resolve(vscodeExecutablePath, '../bin/code.cmd');
        }
    }
    else if (platform === 'darwin') {
        return path.resolve(vscodeExecutablePath, '../../../Contents/Resources/app/bin/code');
    }
    else {
        if (vscodeExecutablePath.endsWith('code-insiders')) {
            return path.resolve(vscodeExecutablePath, '../bin/code-insiders');
        }
        else {
            return path.resolve(vscodeExecutablePath, '../bin/code');
        }
    }
}
function resolveCliPathFromVSCodeExecutablePath ( vscodeExecutablePath , platform ) { if ( platform === 'win32-archive' || platform === 'win32-x64-archive' ) { if ( vscodeExecutablePath . endsWith ( 'Code - Insiders.exe' ) ) { return path . resolve ( vscodeExecutablePath , '../bin/code-insiders.cmd' ) ; } else { return path . resolve ( vscodeExecutablePath , '../bin/code.cmd' ) ; } } else if ( platform === 'darwin' ) { return path . resolve ( vscodeExecutablePath , '../../../Contents/Resources/app/bin/code' ) ; } else { if ( vscodeExecutablePath . endsWith ( 'code-insiders' ) ) { return path . resolve ( vscodeExecutablePath , '../bin/code-insiders' ) ; } else { return path . resolve ( vscodeExecutablePath , '../bin/code' ) ; } } }
Resolve the VS Code cli path from executable path returned from `downloadAndUnzipVSCode`.
Resolve the VS Code cli path from executable path returned from ` downloadAndUnzipVSCode ` .