Skip to main content

workspace_relative_slash

Function workspace_relative_slash 

Source
pub fn workspace_relative_slash(workspace_root: &Path, path: &Path) -> String
Expand description

Render a working directory for tool metadata: workspace-relative, /-separated.

Session backends report the directory they run in, and the shape is a user-visible contract shared by the PTY and pipe executors: paths inside the workspace are relative, the workspace root itself is ".", separators are always / so the value is stable across platforms, and paths outside the workspace stay absolute.