abstractSynchronizer.ts ×3

Frontier kind: Code frontier

unlabeled · c_82ba22355aeb

206 tests · 24839 LOC · 133 files · introduces 0 tests · 16 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
4 ranges16 lines · 2 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
3912 ranges24839 lines · 133 files · Browse complete extent
All tests (intent)
206 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: 16 introduced LOC across 4 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

src/vs/platform/userDataSync/common/abstractSynchronizer.ts 14 introduced LOC · 3 ranges

Open complete file

663
664 protected async updateLastSyncUserData(lastSyncRemoteUserData: IRemoteUserData, additionalProps: IStringDictionary<any> = {}): Promise<void> {
665 > if (additionalProps['ref'] || additionalProps['version']) { abstractSynchronizer.ts
666 throw new Error('Cannot have core properties as additional');
667 }
669 > const version = this.userDataSyncEnablementService.getResourceSyncStateVersion(this.resource);
670 > const lastSyncUserDataState: ILastSyncUserDataState = {
671 > ref: lastSyncRemoteUserData.ref,
672 > version,
673 > ...additionalProps
674 > };
675 >
676 > this.storageService.store(this.lastSyncUserDataStateKey, JSON.stringify(lastSyncUserDataState), StorageScope.APPLICATION, StorageTarget.MACHINE);
677 > await this.writeLastSyncStoredRemoteUserData(lastSyncRemoteUserData);
678 > }
679
680 private getStoredLastSyncUserDataStateContent(): string | undefined {
696
697 private async writeLastSyncStoredRemoteUserData(lastSyncRemoteUserData: IRemoteUserData): Promise<void> {
698 > await this.fileService.writeFile(this.lastSyncResource, VSBuffer.fromString(JSON.stringify(lastSyncRemoteUserData))); abstractSynchronizer.ts
699 > }
700
701 async getRemoteUserData(lastSyncData: IRemoteUserData | null): Promise<IRemoteUserData> {
src/vs/platform/userDataSync/common/userDataSyncEnablementService.ts 2 introduced LOC · 1 range

Open complete file

73
74 getResourceSyncStateVersion(resource: SyncResource): string | undefined {
75 > return undefined; userDataSyncEnablementService.ts
76 > }
77
78 private storeResourceEnablement(resourceEnablementKey: string, enabled: boolean): void {