sessionCustomizationDiscovery.ts ×6

Frontier kind: Code frontier

unlabeled · c_e38e0fe5cd16

63 tests · 50421 LOC · 297 files · introduces 0 tests · 19 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
7 ranges19 lines · 2 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
4692 ranges50421 lines · 297 files · Browse complete extent
All tests (intent)
63 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: 19 introduced LOC across 7 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

src/vs/platform/agentHost/node/copilot/sessionCustomizationDiscovery.ts 17 introduced LOC · 6 ranges

Open complete file

196 * true, upgrade it to recursive while preserving the accumulated trigger URIs.
197 */
198 > function addWatch(map: ResourceMap<IWatchSpec>, watchUri: URI, recursive: boolean, resourceToWatch: URI): void { sessionCustomizationDiscovery.ts
199 > let entry = map.get(watchUri);
200 > if (!entry) {
201 > entry = { recursive, resourcesToWatch: new ResourceSet() };
202 > map.set(watchUri, entry);
203 > } else if (recursive && !entry.recursive) {
204 entry = { recursive: true, resourcesToWatch: entry.resourcesToWatch };
205 map.set(watchUri, entry);
206 }
207 > entry.resourcesToWatch.add(resourceToWatch); sessionCustomizationDiscovery.ts
208 > }
209
210 /**
904
905 for (const [rootUri, next] of nextWatchRootUris.entries()) {
906 > const existing = this._watchers.get(rootUri); sessionCustomizationDiscovery.ts
907 > if (existing) {
908 // Refresh trigger URIs in place; the underlying watcher is unchanged.
909 existing.resourcesToWatch.clear();
913 continue;
914 }
916 > const disposable = this._fileService.watch(rootUri, { recursive: next.recursive, excludes: [] });
917 > this._watchers.set(rootUri, { recursive: next.recursive, resourcesToWatch: next.resourcesToWatch, disposable });
918 > } catch (err) {
919 this._logService.warn(`[SessionCustomizationDiscovery] Failed to watch '${rootUri.toString()}': ${err instanceof Error ? err.message : String(err)}`);
920 }
922 }
923
924 private _disposeAllWatchers(): void {
925 for (const watcher of this._watchers.values()) {
926 > watcher.disposable.dispose(); sessionCustomizationDiscovery.ts
927 > }
928 this._watchers.clear();
929 }
src/vs/base/common/map.ts 2 introduced LOC · 1 range

Open complete file

140 *entries(): MapIterator<[URI, T]> {
141 for (const entry of this.map.values()) {
142 > yield [entry.uri, entry.value]; map.ts
143 > }
144 }
145