abstractSynchronizer.ts ×1

Frontier kind: Code frontier

unlabeled · c_6e094ebf6031

2 tests · 25669 LOC · 133 files · introduces 0 tests · 15 LOC · 3 files

Introduces — evidence that enters the hierarchy at this concept

Code
3 ranges15 lines · 3 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
4198 ranges25669 lines · 133 files · Browse complete extent
All tests (intent)
2 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.

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

src/vs/platform/userDataSync/common/abstractSynchronizer.ts 11 introduced LOC · 1 range

Open complete file

338 case UserDataSyncErrorCode.Conflict:
339 case UserDataSyncErrorCode.PreconditionFailed:
340 > // Rejected as there is a new remote version. Syncing again... abstractSynchronizer.ts
341 > this.logService.info(`${this.syncResourceLogLabel}: Failed to synchronize as there is a new remote version available. Synchronizing again...`);
342 >
343 > // Avoid cache and get latest remote user data - https://github.com/microsoft/vscode/issues/90624
344 > remoteUserData = await this.getRemoteUserData(null);
345 >
346 > // Get the latest last sync user data. Because multiple parallel syncs (in Web) could share same last sync data
347 > // and one of them successfully updated remote and last sync state.
348 > lastSyncUserData = await this.getLastSyncUserData();
349 >
350 > return this.performSync(remoteUserData, lastSyncUserData, SyncStrategy.Merge, userDataSyncConfiguration);
351 }
352 }
src/vs/platform/userDataSync/common/userDataSyncStoreService.ts 2 introduced LOC · 1 range

Open complete file

657
658 if (context.res.statusCode === 412) {
659 > throw new UserDataSyncStoreError(`${options.type} request '${url}' failed because of Precondition Failed (412). There is new data for this resource. Make the request again with latest data.`, url, UserDataSyncErrorCode.PreconditionFailed, context.res.statusCode, operationId); userDataSyncStoreService.ts
660 > }
661
662 if (context.res.statusCode === 413) {
src/vs/platform/userDataSync/test/common/userDataSyncClient.ts 2 introduced LOC · 1 range

Open complete file

321 const data = collectionData.get(resourceKey);
322 if (headers['If-Match'] !== undefined && headers['If-Match'] !== (data ? data.ref : '0')) {
323 > return this.toResponse(412); userDataSyncClient.ts
324 > }
325 const ref = `${parseInt(data?.ref || '0') + 1}`;
326 collectionData.set(resourceKey, { ref, content });