/** Strip inline comments from an SSH config value. */
export function stripSSHComment(s: string): string {
return idx !== -1 ? s.substring(0, idx).trim() : s;
}
/**
Frontier kind: Joint frontier
unlabeled · c_04d904f7958c
10 tests · 3418 LOC · 19 files · introduces 7 tests · 12 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/common/sshConfigParsing.test|title=SSH Config Parsing parseSSHConfigHostEntries extracts multiple hosts from a single Host line|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/common/sshConfigParsing.test|title=SSH Config Parsing parseSSHConfigHostEntries extracts simple host entries|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/common/sshConfigParsing.test|title=SSH Config Parsing parseSSHConfigHostEntries ignores non-Host directives|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/common/sshConfigParsing.test|title=SSH Config Parsing parseSSHConfigHostEntries is case-insensitive for Host keyword|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/common/sshConfigParsing.test|title=SSH Config Parsing parseSSHConfigHostEntries skips negation patterns|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/common/sshConfigParsing.test|title=SSH Config Parsing parseSSHConfigHostEntries skips question mark wildcards|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/common/sshConfigParsing.test|title=SSH Config Parsing parseSSHConfigHostEntries strips inline comments from Host values|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/common/sshConfigParsing.test|title=SSH Config Parsing parseSSHConfigHostEntries extracts hosts from multiple Host directives|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/common/sshConfigParsing.test|title=SSH Config Parsing parseSSHConfigHostEntries skips comment lines|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/common/sshConfigParsing.test|title=SSH Config Parsing parseSSHConfigHostEntries skips wildcard hosts|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.
7 tests introduced at this concept.
sshConfigParsing.test|title=SSH Config Parsing parseSSHConfigHostEntries extracts multiple hosts from a single Host line|occurrence=1sshConfigParsing.test|title=SSH Config Parsing parseSSHConfigHostEntries extracts simple host entries|occurrence=1sshConfigParsing.test|title=SSH Config Parsing parseSSHConfigHostEntries ignores non-Host directives|occurrence=1sshConfigParsing.test|title=SSH Config Parsing parseSSHConfigHostEntries is case-insensitive for Host keyword|occurrence=1sshConfigParsing.test|title=SSH Config Parsing parseSSHConfigHostEntries skips negation patterns|occurrence=1sshConfigParsing.test|title=SSH Config Parsing parseSSHConfigHostEntries skips question mark wildcards|occurrence=1sshConfigParsing.test|title=SSH Config Parsing parseSSHConfigHostEntries strips inline comments from Host values|occurrence=1Every collected source range enters the hierarchy at exactly one concept.
1 file ranked by introduced lines: 12 introduced LOC across 2 ranges. Expand a file to inspect source; the > gutter marks introduced lines.
/** Strip inline comments from an SSH config value. */
export function stripSSHComment(s: string): string {
return idx !== -1 ? s.substring(0, idx).trim() : s;
}
/**
continue;
}
if (hostMatch) {
const hostValue = stripSSHComment(hostMatch[1]);
for (const h of hostValue.split(/\s+/)) {
if (!h.includes('*') && !h.includes('?') && !h.startsWith('!')) {
hosts.push(h);
}
}
}
}
return hosts;