fileService.ts ×3

Frontier kind: Code frontier

unlabeled · c_cccf17d3252d

57 tests · 29248 LOC · 155 files · introduces 0 tests · 20 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
4 ranges20 lines · 2 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
3296 ranges29248 lines · 155 files · Browse complete extent
All tests (intent)
57 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: 20 introduced LOC across 4 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

src/vs/platform/files/common/fileService.ts 19 introduced LOC · 3 ranges

Open complete file

1160
1161 createWatcher(resource: URI, options: IWatchOptionsWithoutCorrelation & { recursive: false }): IFileSystemWatcher {
1162 > return this.watch(resource, { fileService.ts
1163 > ...options,
1164 > // Explicitly set a correlation id so that file events that originate
1165 > // from requests from extensions are exclusively routed back to the
1166 > // extension host and not into the workbench.
1167 > correlationId: FileService.WATCHER_CORRELATION_IDS++
1168 > });
1169 > }
1170
1171 watch(resource: URI, options: IWatchOptionsWithCorrelation): IFileSystemWatcher;
1198 const correlationId = options.correlationId;
1199 if (typeof correlationId === 'number') {
1200 > const fileChangeEmitter = disposables.add(new Emitter<FileChangesEvent>()); fileService.ts
1201 > disposables.add(this.internalOnDidFilesChange.event(e => {
1202 if (e.correlates(correlationId)) {
1203 fileChangeEmitter.fire(e);
1204 }
1205 > })); fileService.ts
1206 >
1207 > const watcher: IFileSystemWatcher = {
1208 > onDidChange: fileChangeEmitter.event,
1209 > dispose: () => disposables.dispose()
1210 > };
1211 >
1212 > return watcher;
1213 > }
1214
1215 return disposables;
src/vs/base/common/hash.ts 1 introduced LOC · 1 range

Open complete file

33 return booleanHash(obj, hashVal);
34 case 'number':
35 > return numberHash(obj, hashVal); hash.ts
36 case 'undefined':
37 return numberHash(937, hashVal);