603
604
private async _resolveRuntimeInfo(): Promise<void> {
606
return;
607
}
609
>
const runtimeInfo = await this._host.getRuntimeInfo();
610
>
this._appRoot = runtimeInfo.appRoot;
611
>
this._execPath = runtimeInfo.execPath;
612
>
this._runAsNode = runtimeInfo.runAsNode ?? false;
613
>
this._userHome = await this._host.getUserHome();
614
>
this._srtPath = this._pathJoin(this._appRoot, 'node_modules', '@vscode', 'sandbox-runtime', 'dist', 'cli.js');
615
>
const nativeModulesDir = runtimeInfo.nativeModulesDir ?? 'node_modules';
616
>
const rgPlatform = this._os === OperatingSystem.Windows ? 'win32' : this._os === OperatingSystem.Macintosh ? 'darwin' : 'linux';
617
>
const rgBinary = this._os === OperatingSystem.Windows ? 'rg.exe' : 'rg';
618
>
this._rgPath = this._pathJoin(this._appRoot, nativeModulesDir, '@vscode', 'ripgrep-universal', 'bin', `${rgPlatform}-${arch}`, rgBinary);
619
>
this._mxcPath = this._windowsMxcRuntime.getExecutablePath(this._appRoot, nativeModulesDir, runtimeInfo.arch);
620
>
}
621
622
private async _createSandboxConfig(): Promise<string | undefined> {