userDataSyncClient.ts ×4

Frontier kind: Joint frontier

unlabeled · c_4568201b9589

1 test · 26292 LOC · 133 files · introduces 1 test · 18 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
6 ranges18 lines · 2 files
Tests
1 test

Contains — complete concept membership

All code (extent)
4377 ranges26292 lines · 133 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: 18 introduced LOC across 6 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

src/vs/platform/userDataSync/test/common/userDataSyncClient.ts 11 introduced LOC · 4 ranges

Open complete file

250 }
251 if (options.type === 'DELETE' && segments.length === 2 && segments[0] === 'resource') {
252 > return this.deleteResourceData(undefined, segments[1]); userDataSyncClient.ts
253 > }
254 if (options.type === 'DELETE' && segments.length === 1 && segments[0] === 'resource') {
255 return this.clear(options.headers);
331
332 private async deleteResourceData(collection: string | undefined, resource: string, headers: IHeaders = {}): Promise<IRequestContext> {
333 > const collectionData = collection ? this.collections.get(collection) : this.data; userDataSyncClient.ts
334 > if (!collectionData) {
335 return this.toResponse(501);
336 }
338 > const resourceKey = ALL_SERVER_RESOURCES.find(key => key === resource);
339 > if (resourceKey) {
340 > collectionData.delete(resourceKey);
341 > return this.toResponse(200);
342 > }
343
344 return this.toResponse(404);
346
347 private async createCollection(): Promise<IRequestContext> {
src/vs/platform/userDataSync/common/userDataSyncStoreService.ts 7 introduced LOC · 2 ranges

Open complete file

325
326 async deleteResource(resource: ServerResource, ref: string | null, collection?: string): Promise<void> {
327 > if (!this.userDataSyncStoreUrl) { userDataSyncStoreService.ts
328 throw new Error('No settings sync store url configured.');
329 }
331 > const url = ref !== null ? joinPath(this.getResourceUrl(this.userDataSyncStoreUrl, collection, resource), ref).toString() : this.getResourceUrl(this.userDataSyncStoreUrl, collection, resource).toString();
332 > const headers: IHeaders = {};
333 >
334 > await this.request(url, { type: 'DELETE', headers, callSite: 'userDataSync.deleteResource' }, [], CancellationToken.None);
335 > }
336
337 async deleteResources(): Promise<void> {