promptFilesLocator.ts ×2

Frontier kind: Joint frontier

unlabeled · c_91e2fb6e67a6

1 test · 31388 LOC · 163 files · introduces 1 test · 30 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
4 ranges30 lines · 2 files
Tests
1 test

Contains — complete concept membership

All code (extent)
3673 ranges31388 lines · 163 files · Browse complete extent
All tests (intent)
1 testBrowse 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.

1 test introduced at this concept.

Introduced code

Every collected source range enters the hierarchy at exactly one concept.

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

src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.ts 23 introduced LOC · 2 ranges

Open complete file

715 // Check if a FileSearchProvider is available for this scheme
716 if (this.searchService.schemeHasFileSearchProvider(folder.scheme)) {
717 > // Use the search service if a FileSearchProvider is available promptFilesLocator.ts
718 > const disregardIgnoreFiles = this.configService.getValue<boolean>('explorer.excludeGitIgnore');
719 > const getExcludePattern = (folder: URI) => getExcludes(this.configService.getValue<ISearchConfiguration>({ resource: folder })) || {};
720 > const searchOptions: IFileQuery = {
721 > folderQueries: [{ folder, disregardIgnoreFiles }],
722 > type: QueryType.File,
723 > shouldGlobMatchFilePattern: true,
724 > excludePattern: getExcludePattern(folder),
725 > filePattern: '**/AGENTS.md',
726 > ignoreGlobCase: true,
727 > };
728 >
729 > try {
730 > const searchResult = await this.searchService.fileSearch(searchOptions, token);
731 > if (token.isCancellationRequested) {
732 return [];
733 }
734 > // Resolve real paths for duplicate detection promptFilesLocator.ts
735 > const results: IAgentInstructionFile[] = [];
736 > for (const r of searchResult.results) {
737 > const realPath = undefined; // We can skip realpath resolution here for performance; duplicates can be handled later if needed
738 > results.push({ uri: r.resource, realPath, type: AgentInstructionFileType.agentsMd });
739 > }
740 > return results;
741 > } catch (e) {
742 if (!isCancellationError(e)) {
743 throw e;
src/vs/workbench/services/search/common/search.ts 7 introduced LOC · 2 ranges

Open complete file

479
480 export function getExcludes(configuration: ISearchConfiguration, includeSearchExcludes = true): glob.IExpression | undefined {
481 > const fileExcludes = configuration && configuration.files && configuration.files.exclude; search.ts
482 > const searchExcludes = includeSearchExcludes && configuration && configuration.search && configuration.search.exclude;
483 >
484 > if (!fileExcludes && !searchExcludes) {
485 > return undefined;
486 > }
487
488 > if (!fileExcludes || !searchExcludes) { search.ts
489 return fileExcludes || searchExcludes || undefined;
490 }