(userDataPath: string)
| 42 | } |
| 43 | |
| 44 | export function preferAppEnv(userDataPath: string) { |
| 45 | const shell = process.platform === "win32" ? null : getUserShell() |
| 46 | Object.assign(process.env, { |
| 47 | ...(shell ? loadShellEnv(shell, getLogger()) : null), |
| 48 | OPENCODE_EXPERIMENTAL_ICON_DISCOVERY: "true", |
| 49 | OPENCODE_EXPERIMENTAL_FILEWATCHER: "true", |
| 50 | OPENCODE_CLIENT: "desktop", |
| 51 | XDG_STATE_HOME: process.env.XDG_STATE_HOME ?? userDataPath, |
| 52 | }) |
| 53 | } |
| 54 | |
| 55 | export async function spawnLocalServer( |
| 56 | hostname: string, |
no test coverage detected