promptRegistry.ts ×2
Frontier kind: Code frontier
unlabeled · c_969f7f78472f
12 tests · 7272 LOC · 41 files · introduces 0 tests · 3 LOC · 1 file
Introduces — evidence that enters the hierarchy at this concept
- Code
- 2 ranges3 lines · 1 files
- Tests
- 0 tests
Contains — complete concept membership
- All code (extent)
- 609 ranges7272 lines · 41 files · Browse complete extent
- All tests (intent)
- 12 testsBrowse complete intent
Neighbourhood graph
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.
- Focus concept
- Ancestors (broader)
- Descendants (narrower)
- Introduced files
- Introduced tests
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.
Native relationship evidence
Every exact file and test below is linked only from the concept that introduces it.
- promptRegistry.ts ×2 — Focused concept Introduced files:
- copilotAgent.test|title=CopilotAgent contextSize to contextTier mapping uses long_context when model has no surcharge, no explicit selection and preferLongContext is enabled|occurrence=1 — Ancestor (broader) Introduced tests:
- copilotAgent.test|title=CopilotAgent contextSize to contextTier mapping leaves the SDK on its default tier when model has no surcharge and no explicit selection|occurrence=1 — Ancestor (broader) Introduced tests:
-
copilotAgent.test|title=CopilotAgent contextSize to contextTier mapping maps the default numeric context size to default|occurrence=1, copilotAgent.test|title=CopilotAgent contextSize to contextTier mapping maps the largest numeric context size to long_context|occurrence=1 — Ancestor (broader)
Introduced tests:
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/copilotAgent.test|title=CopilotAgent contextSize to contextTier mapping maps the default numeric context size to default|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/copilotAgent.test|title=CopilotAgent contextSize to contextTier mapping maps the largest numeric context size to long_context|occurrence=1
- copilotSessionLauncher.ts ×1 — Ancestor (broader) Introduced files: Introduced tests:
- copilotSessionLauncher.ts ×1 — Ancestor (broader) Introduced files: Introduced tests:
- copilotSessionLauncher.ts ×1 — Ancestor (broader) Introduced files:
- copilotAgent.ts ×2 — Ancestor (broader) Introduced files:
- agentHostPromptRegistry.test|title=AgentHostPromptRegistry tool search instructions wiring layers the tool-search line onto the default config when active and the tool-search tool is present|occurrence=1 — Ancestor (broader) Introduced tests:
- agentHostPromptRegistry.test|title=AgentHostPromptRegistry universal tool instructions wiring layers the browser tool_instructions onto the default config when browser tools are present|occurrence=1 — Ancestor (broader) Introduced tests:
- agentHostPromptRegistry.test|title=AgentHostPromptRegistry tool search instructions wiring is a no-op when active but the client does not expose the tool-search tool|occurrence=1 — Ancestor (broader) Introduced tests:
-
agentHostPromptRegistry.test|title=AgentHostPromptRegistry falls back to the default when no contributor matches the model|occurrence=1, agentHostPromptRegistry.test|title=AgentHostPromptRegistry universal tool instructions wiring is a no-op when the session exposes no matching tools|occurrence=1, +1 — Ancestor (broader)
Introduced tests:
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/agentHostPromptRegistry.test|title=AgentHostPromptRegistry falls back to the default when no contributor matches the model|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/agentHostPromptRegistry.test|title=AgentHostPromptRegistry tool search instructions wiring is a no-op when tool search is inactive even if the tool-search tool is present|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/agentHostPromptRegistry.test|title=AgentHostPromptRegistry universal tool instructions wiring is a no-op when the session exposes no matching tools|occurrence=1
- systemMessage.ts ×1 — Descendant (narrower) Introduced files:
- promptRegistry.ts ×1 — Descendant (narrower) Introduced files:
- promptRegistry.ts ×3 — Descendant (narrower) Introduced files:
- promptRegistry.ts ×1 — Descendant (narrower) Introduced files:
- promptRegistry.ts ×10 — Descendant (narrower) Introduced files:
- promptRegistry.ts ×7 — Descendant (narrower) Introduced files:
- copilotCliConfig.ts ×2 — Descendant (narrower) Introduced files:
- agentHostSchema.ts ×21 — Descendant (narrower) Introduced files:
- configuration.ts ×12 — Descendant (narrower) Introduced files:
- sessionProtocol.ts ×5 — Descendant (narrower) Introduced files:
- toolInstructions.ts ×1 — Descendant (narrower) Introduced files:
- toolInstructions.ts ×1 — Descendant (narrower) Introduced files:
- toolInstructions.ts ×1 — Descendant (narrower) Introduced files: Introduced tests:
- toolInstructions.ts ×1 — Descendant (narrower) Introduced files: Introduced tests:
- sessionConfigKeys.ts ×1 — Descendant (narrower) Introduced files:
- toolInstructions.ts ×6 — Descendant (narrower) Introduced files:
-
commands.ts ×1 — Descendant (narrower)
Introduced files:
- src/vs/platform/agentHost/common/state/protocol/channels-changeset/commands.ts
- src/vs/platform/agentHost/common/state/protocol/channels-chat/commands.ts
- src/vs/platform/agentHost/common/state/protocol/channels-session/commands.ts
- src/vs/platform/agentHost/common/state/protocol/commands.ts
- src/vs/platform/agentHost/common/state/protocol/common/commands.ts
- equals.ts ×14 — Descendant (narrower) Introduced files:
- arrays.test|title=Arrays coalesce|occurrence=1 — Descendant (narrower) Introduced tests:
- arrays.ts ×1 — Descendant (narrower) Introduced files:
- state.ts ×1 — Descendant (narrower) Introduced files:
- toolSearchConstants.ts ×1 — Descendant (narrower) Introduced files:
-
uri.test|title=URI URI#file, win-speciale|occurrence=1, charCode.test|title=CharCode has good values|occurrence=1, +2 — Descendant (narrower)
Introduced tests:
mocha: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=1
- utils.ts ×3 — Descendant (narrower) Introduced files:
- telemetry.ts ×3 — Descendant (narrower) Introduced files:
- nls.ts ×1 — Descendant (narrower) Introduced files:
- nls.ts ×6 — Descendant (narrower) Introduced files:
- instantiation.ts ×5 — Descendant (narrower) Introduced files:
- lifecycle.ts ×2 — Descendant (narrower) Introduced files:
- lifecycle.ts ×1 — Descendant (narrower) Introduced files:
- lifecycle.ts ×4 — Descendant (narrower) Introduced files:
- lifecycle.ts ×6 — Descendant (narrower) Introduced files:
- lifecycle.ts ×1 — Descendant (narrower) Introduced files:
- lifecycle.ts ×1 — Descendant (narrower) Introduced files:
- lifecycle.ts ×1 — Descendant (narrower) Introduced files:
-
map.ts ×97 — Descendant (narrower)
Introduced files:
- src/vs/base/common/arrays.ts
- src/vs/base/common/arraysFind.ts
- src/vs/base/common/assert.ts
- src/vs/base/common/charCode.ts
- src/vs/base/common/collections.ts
- src/vs/base/common/errors.ts
- src/vs/base/common/functional.ts
- src/vs/base/common/iterator.ts
- src/vs/base/common/lifecycle.ts
- src/vs/base/common/map.ts
- src/vs/base/common/marshallingIds.ts
- src/vs/base/common/path.ts
- src/vs/base/common/platform.ts
- src/vs/base/common/process.ts
- src/vs/base/common/types.ts
- src/vs/base/common/uri.ts
- src/vs/base/test/common/utils.ts
- src/vs/nls.ts
Introduced tests
Every collected test enters the hierarchy at exactly one concept.
No tests are introduced at this concept. Its intent tests are introduced by other concepts.
Introduced code
Every collected source range enters the hierarchy at exactly one concept.
1 file ranked by introduced lines: 3 introduced LOC across 2 ranges. Expand a file to inspect source; the > gutter marks introduced lines.
src/vs/platform/agentHost/node/copilot/prompts/promptRegistry.ts 3 introduced LOC · 2 ranges
const ctor = this._getContributor(model);
if (!ctor) {
}
const contributor = new ctor();
const fullPrompt = contributor.resolveFullSystemPrompt?.(model, context);