/** Escape a string for use as a single shell argument (single-quote wrapping). */
export function shellEscape(s: string): string {
const escaped = s.replace(/'/g, '\'\\\'\'');
return `'${escaped}'`;
}
/**
Frontier kind: Joint frontier
unlabeled · c_adbace19bd82
45 tests · 8550 LOC · 42 files · introduces 4 tests · 4 LOC · 1 file
The orange circle is the focus. Violet and green circles are every ancestor and descendant, broader and narrower, at any distance; blue squares and pink diamonds are the introduced files and exact introduced tests of every visible concept, not only the focus's. Arrows point from broader to narrower concepts and bridge only concepts omitted from this view. Undirected links show source or test introduction. Concept and file size follows LOC; exact test nodes use test-count units.
Introduced files, introduced tests, and structurally relevant concept specialization
In the embedded map, ordinary wheel input scrolls the page; use the visible controls to zoom and drag to pan. Open the full-screen map for canvas navigation: wheel pans, Ctrl/Command plus wheel zooms, and arrow keys pan when this region is focused. On touch screens, open the full-screen map to pan or pinch. If JavaScript or WebGL is unavailable, use the native relationship evidence on this page.
Graph controls are ready.
Interactive rendering requires JavaScript and WebGL. Use the native relationship evidence on this page while the interactive map is unavailable.
Every exact file and test below is linked only from the concept that introduces it.
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/sshRemoteAgentHostHelpers.test|title=SSH Remote Agent Host Helpers shellEscape escapes embedded single quotes|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/sshRemoteAgentHostHelpers.test|title=SSH Remote Agent Host Helpers shellEscape handles empty string|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/sshRemoteAgentHostHelpers.test|title=SSH Remote Agent Host Helpers shellEscape passes through special chars safely wrapped|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/sshRemoteAgentHostHelpers.test|title=SSH Remote Agent Host Helpers shellEscape wraps simple string in single quotes|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/sshRemoteAgentHostService.test|title=SSHRemoteAgentHostMainService - connect flow messages from superseded relay still arrive (only close is suppressed)|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/sshRemoteAgentHostService.test|title=SSHRemoteAgentHostMainService - connect flow reconnect does not fire onDidRelayClose for superseded relay|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/sshRemoteAgentHostService.test|title=SSHRemoteAgentHostMainService - connect flow reconnect suppresses synchronous close from old relay during replacement|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/sshRemoteAgentHostService.test|title=SSHRemoteAgentHostMainService - connect flow creates fresh relay on reconnect without restarting agent|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/sshRemoteAgentHostService.test|title=SSHRemoteAgentHostMainService - connect flow reconnect preserves connection token and address|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/sshRemoteAgentHostService.test|title=SSHRemoteAgentHostMainService - connect flow reconnect removes old close/error listeners from shared SSH client|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/sshRemoteAgentHostService.test|title=SSHRemoteAgentHostMainService - connect flow commit-pinned install always invokes cleanup of old commit-keyed CLIs|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/sshRemoteAgentHostService.test|title=SSHRemoteAgentHostMainService - connect flow commit-pinned install reuses existing commit-keyed CLI without re-downloading|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/sshRemoteAgentHostService.test|title=SSHRemoteAgentHostMainService - connect flow relay messages fire onDidRelayMessage with correct connectionId|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/sshRemoteAgentHostService.test|title=SSHRemoteAgentHostMainService - connect flow relay messages from two connections are distinguished by connectionId|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/sshRemoteAgentHostService.test|title=SSHRemoteAgentHostMainService - connect flow connects to two different hosts independently|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/sshRemoteAgentHostService.test|title=SSHRemoteAgentHostMainService - connect flow defaults to port 22 in connection key|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/sshRemoteAgentHostService.test|title=SSHRemoteAgentHostMainService - connect flow sanitizes config in result (strips password and privateKeyPath)|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/sshRemoteAgentHostService.test|title=SSHRemoteAgentHostMainService - connect flow skips platform detection and CLI install with remoteAgentHostCommand|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/sshRemoteAgentHostService.test|title=SSHRemoteAgentHostMainService - connect flow uses host:port as connection key without sshConfigHost|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/sshRemoteAgentHostService.test|title=SSHRemoteAgentHostMainService - connect flow cleans up SSH client on error|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/sshRemoteAgentHostService.test|title=SSHRemoteAgentHostMainService - connect flow does not retry when relay fails on freshly started agent|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/sshRemoteAgentHostHelpers.test|title=SSH Remote Agent Host Helpers writeAgentHostState writes lockfile with canonical metadata JSON|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/sshRemoteAgentHostHelpers.test|title=SSH Remote Agent Host Helpers writeAgentHostState writes null connectionToken when undefined|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/charCode.test|title=CharCode has good values|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/path.test|title=Paths (Node Implementation) path|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/uri.test|title=URI File paths containing apostrophes break URI parsing and cannot be opened #276075|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/uri.test|title=URI URI#file, win-speciale|occurrence=1Every collected test enters the hierarchy at exactly one concept.
4 tests introduced at this concept.
sshRemoteAgentHostHelpers.test|title=SSH Remote Agent Host Helpers shellEscape escapes embedded single quotes|occurrence=1sshRemoteAgentHostHelpers.test|title=SSH Remote Agent Host Helpers shellEscape handles empty string|occurrence=1sshRemoteAgentHostHelpers.test|title=SSH Remote Agent Host Helpers shellEscape passes through special chars safely wrapped|occurrence=1sshRemoteAgentHostHelpers.test|title=SSH Remote Agent Host Helpers shellEscape wraps simple string in single quotes|occurrence=1Every collected source range enters the hierarchy at exactly one concept.
1 file ranked by introduced lines: 4 introduced LOC across 1 ranges. Expand a file to inspect source; the > gutter marks introduced lines.
/** Escape a string for use as a single shell argument (single-quote wrapping). */
export function shellEscape(s: string): string {
const escaped = s.replace(/'/g, '\'\\\'\'');
return `'${escaped}'`;
}
/**