displayPath method
Workspace-relative path for display, or path itself when outside.
Implementation
String displayPath(String path) {
final normalized = _normalize(path);
return isWithinWorkspace(normalized) ? p.relative(normalized, from: workspaceRoot) : normalized;
}