promptsServiceImpl.ts ×3

Frontier kind: Code frontier

unlabeled · c_390acaaeb0b3

27 tests · 68616 LOC · 326 files · introduces 0 tests · 30 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
5 ranges30 lines · 2 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
6836 ranges68616 lines · 326 files · Browse complete extent
All tests (intent)
27 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.

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.

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.

2 files ranked by introduced lines: 30 introduced LOC across 5 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.ts 28 introduced LOC · 3 ranges

Open complete file

1078 const result: IInstructionFile[] = [];
1079 for (const file of discoveryInfo.files) {
1080 > if (file.status === 'loaded' && file.promptPath.name) { promptsServiceImpl.ts
1081 > result.push({
1082 > uri: file.promptPath.uri,
1083 > storage: file.promptPath.storage,
1084 > extension: file.promptPath.extension,
1085 > pluginUri: file.promptPath.pluginUri,
1086 > source: file.promptPath.source,
1087 > name: file.promptPath.name,
1088 > description: file.promptPath.description,
1089 > pattern: file.pattern,
1090 > sessionTypes: file.promptPath.sessionTypes,
1091 > });
1092 > }
1093 > }
1094 return result;
1095 }
1404 const instructionsFiles = await this.listPromptFiles(PromptsType.instructions, token);
1405 for (const promptPath of instructionsFiles) {
1406 > const uri = promptPath.uri; promptsServiceImpl.ts
1407 >
1408 > try {
1409 > const parsedPromptFile = await this.parseNew(uri, token);
1410 > const name = parsedPromptFile?.header?.name ?? promptPath.name ?? getCleanPromptName(uri);
1411 > const description = parsedPromptFile?.header?.description ?? promptPath.description;
1412 > const pattern = evaluateApplyToPattern(parsedPromptFile.header, isInClaudeRulesFolder(uri));
1413 > files.push({
1414 > status: 'loaded',
1415 > pattern,
1416 > promptPath: this.withPromptPathMetadata(promptPath, name, description),
1417 > });
1418 > } catch (e) {
1419 files.push({
1420 status: 'skipped',
1424 });
1425 }
1427
1428 const sourceFolders = await this._collectSourceFolderDiagnostics(PromptsType.instructions);
src/vs/workbench/contrib/chat/common/promptSyntax/promptFileParser.ts 2 introduced LOC · 2 ranges

Open complete file

631 */
632 export function evaluateApplyToPattern(header: PromptHeader | undefined, isClaudeRules: boolean): string | undefined {
633 > if (isClaudeRules) { promptFileParser.ts
634 return header?.paths?.join(', ') ?? '**';
635 }
636 return header?.applyTo;