fileService.ts ×6

Frontier kind: Code frontier

unlabeled · c_c6c505f82f46

708 tests · 11489 LOC · 46 files · introduces 0 tests · 22 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
6 ranges22 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
1790 ranges11489 lines · 46 files · Browse complete extent
All tests (intent)
708 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.

1 file ranked by introduced lines: 22 introduced LOC across 6 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

src/vs/platform/files/common/fileService.ts 22 introduced LOC · 6 ranges

Open complete file

1172 watch(resource: URI, options?: IWatchOptionsWithoutCorrelation): IDisposable;
1173 watch(resource: URI, options: IWatchOptions = { recursive: false, excludes: [] }): IFileSystemWatcher | IDisposable {
1174 > const disposables = new DisposableStore(); fileService.ts
1175 >
1176 > // Forward watch request to provider and wire in disposables
1177 > let watchDisposed = false;
1178 > let disposeWatch = () => { watchDisposed = true; };
1179 > disposables.add(toDisposable(() => disposeWatch()));
1180 >
1181 > // Watch and wire in disposable which is async but
1182 > // check if we got disposed meanwhile and forward
1183 > (async () => {
1184 > try {
1185 > const disposable = await this.doWatch(resource, options);
1186 if (watchDisposed) {
1187 dispose(disposable);
1189 disposeWatch = () => dispose(disposable);
1190 }
1191 > } catch (error) { fileService.ts
1192 this.logService.error(error);
1193 }
1194 > })(); fileService.ts
1195 >
1196 > // When a correlation identifier is set, return a specific
1197 > // watcher that only emits events matching that correalation.
1198 > const correlationId = options.correlationId;
1199 > if (typeof correlationId === 'number') {
1200 const fileChangeEmitter = disposables.add(new Emitter<FileChangesEvent>());
1201 disposables.add(this.internalOnDidFilesChange.event(e => {
1214
1215 return disposables;
1216 > } fileService.ts
1217
1218 private async doWatch(resource: URI, options: IWatchOptions): Promise<IDisposable> {
1219 > const provider = await this.withProvider(resource); fileService.ts
1220
1221 // Deduplicate identical watch requests
1247 }
1248 });
1249 > } fileService.ts
1250
1251 override dispose(): void {