pub fn session_environment(
var: &dyn Fn(&str) -> Option<String>,
) -> Vec<(String, String)>Expand description
The environment a session’s kernels and commands start from (TS: the worker’s process.env, which kernel.ts
kernelEnvironment filters and getShellEnv extends): every name this process has plus [SESSION_ENV_NAMES],
each with the value the session’s var gives it (dropped when it gives none). Values come only from the session’s
environment, never from this process’s: a session whose PATH differs runs its tools from its own PATH.