*/
export function upcast<Base, Sub extends Base = Base>(x: Sub): Base {
}
type AddFirstParameterToFunction<T, TargetFunctionsReturnType, FirstParameter> = T extends (...args: any[]) => TargetFunctionsReturnType ?
Frontier kind: Code frontier
unlabeled · c_1036eaff66af
104 tests · 3491 LOC · 19 files · introduces 0 tests · 2 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/workbench/contrib/mcp/test/common/mcpRegistry.test|title=Workbench - MCP - Registry Server Label Collision Enablement enabling a colliding server disables others with same label|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/mcp/test/common/mcpRegistry.test|title=Workbench - MCP - Registry Server Label Collision Enablement three-way collision: enabling lowest disables both others|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/mcp/test/common/mcpRegistry.test|title=Workbench - MCP - Registry Server Label Collision Enablement non-colliding servers in same collection as colliding ones are unaffected|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/mcp/test/common/mcpRegistry.test|title=Workbench - MCP - Registry Server Label Collision Enablement updates when server definitions change|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/mcp/test/common/mcpRegistry.test|title=Workbench - MCP - Registry Server Label Collision Enablement both servers in same collection with same label: only first enabled|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/mcp/test/common/mcpRegistry.test|title=Workbench - MCP - Registry Server Label Collision Enablement disables lower-priority servers with same label|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/mcp/test/common/mcpRegistry.test|title=Workbench - MCP - Registry Server Label Collision Enablement label collision is case-insensitive|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/mcp/test/common/mcpRegistry.test|title=Workbench - MCP - Registry Server Label Collision Enablement respects collection order for priority|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/mcp/test/common/mcpRegistry.test|title=Workbench - MCP - Registry Server Label Collision Enablement three-way collision: only highest priority is enabled|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/mcp/test/common/mcpRegistry.test|title=Workbench - MCP - Registry Duplicate Collection Prevention disposal of duplicate-preventing registration does not affect original|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/mcp/test/common/mcpRegistry.test|title=Workbench - MCP - Registry Duplicate Collection Prevention prevents duplicate non-lazy collections with same ID|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/mcp/test/common/mcpRegistry.test|title=Workbench - MCP - Registry Duplicate Collection Prevention prevents lazy collection from duplicating existing non-lazy collection|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/mcp/test/common/mcpRegistry.test|title=Workbench - MCP - Registry Duplicate Collection Prevention allows different collection IDs to coexist|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/mcp/test/common/mcpRegistry.test|title=Workbench - MCP - Registry registerCollection adds collection to registry|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/mcp/test/common/mcpRegistry.test|title=Workbench - MCP - Registry Trust Flow trusted collection allows connection without prompting|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/mcp/test/common/mcpRegistry.test|title=Workbench - MCP - Registry resolveConnection calls launchInSandboxIfEnabled with expected arguments when sandboxing is enabled|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/mcp/test/common/mcpServerConnection.test|title=Workbench - MCP - ServerConnection should emit a sandbox filesystem block for read-only at-path errors with double-quoted paths|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/mcp/test/common/mcpServerConnection.test|title=Workbench - MCP - ServerConnection should emit a sandbox filesystem block for read-only errors with backtick paths|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/mcp/test/common/mcpServerConnection.test|title=Workbench - MCP - ServerConnection should emit a sandbox filesystem block for read-only errors with double-quoted paths|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/update/test/common/updateUtils.test|title=UpdateUtils computeUpdateInfoVersion returns minor .0 version when major differs|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/update/test/common/updateUtils.test|title=UpdateUtils computeUpdateInfoVersion returns minor .0 version when minor differs|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/update/test/common/updateUtils.test|title=UpdateUtils isMajorMinorVersionChange returns false when new version is undefined|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/update/test/common/updateUtils.test|title=UpdateUtils isMajorMinorVersionChange returns false when previous version is undefined|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/update/test/common/updateUtils.test|title=UpdateUtils isMajorMinorVersionChange returns false for identical versions|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/update/test/common/updateUtils.test|title=UpdateUtils isMajorMinorVersionChange returns false for patch-only change|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/update/test/common/updateUtils.test|title=UpdateUtils isMajorMinorVersionChange returns true for major version change|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/update/test/common/updateUtils.test|title=UpdateUtils isMajorMinorVersionChange returns true for minor version change|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/update/test/common/updateUtils.test|title=UpdateUtils computeDownloadSpeed returns undefined for zero downloaded bytes|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/update/test/common/updateUtils.test|title=UpdateUtils computeDownloadSpeed returns undefined for zero or negative elapsed time|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/update/test/common/updateUtils.test|title=UpdateUtils tryParseDate parses valid ISO date strings|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/update/test/common/updateUtils.test|title=UpdateUtils tryParseDate returns undefined for invalid date strings|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/update/test/common/updateUtils.test|title=UpdateUtils computeProgressPercent clamps to 0-100 range|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/update/test/common/updateUtils.test|title=UpdateUtils computeProgressPercent computes correct percentage|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/update/test/common/updateUtils.test|title=UpdateUtils getUpdateInfoUrl constructs correct URL for .0 versions|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/update/test/common/updateUtils.test|title=UpdateUtils getUpdateInfoUrl constructs correct URL for patch versions|occurrence=1Every collected test enters the hierarchy at exactly one concept.
No tests are introduced at this concept. Its intent tests are introduced by other concepts.
Every collected source range enters the hierarchy at exactly one concept.
1 file ranked by introduced lines: 2 introduced LOC across 1 ranges. Expand a file to inspect source; the > gutter marks introduced lines.
*/
export function upcast<Base, Sub extends Base = Base>(x: Sub): Base {
}
type AddFirstParameterToFunction<T, TargetFunctionsReturnType, FirstParameter> = T extends (...args: any[]) => TargetFunctionsReturnType ?