src/vs/workbench/contrib/userDataSync/browser/userDataSyncViews.ts/UserDataSyncTroubleshootViewDataProvider/getSyncLogs
class UserDataSyncTroubleshootViewDataProvider:	private async getSyncLogs(): Promise<ITreeItem[]> {
		const logsFolders: URI[] = [];
		const stat = await this.fileService.resolve(this.uriIdentityService.extUri.dirname(this.uriIdentityService.extUri.dirname(this.environmentService.userDataSyncLogResource)));
		if (stat.children) {
			logsFolders.push(...stat.children
				.filter(stat => stat.isDirectory && /^\d{8}T\d{6}$/.test(stat.name))
				.sort()
				.reverse()
				.map(d => d.resource));
		}

		const result: ITreeItem[] = [];
		for (const logFolder of logsFolders) {
			const syncLogResource = this.uriIdentityService.extUri.joinPath(logFolder, this.uriIdentityService.extUri.basename(this.environmentService.userDataSyncLogResource));
			if (await this.fileService.exists(syncLogResource)) {
				result.push({
					handle: syncLogResource.toString(),
					collapsibleState: TreeItemCollapsibleState.None,
					resourceUri: syncLogResource,
					label: { label: this.uriIdentityService.extUri.basename(logFolder) },
					description: this.uriIdentityService.extUri.isEqual(syncLogResource, this.environmentService.userDataSyncLogResource) ? localize({ key: 'current', comment: ['Represents current log file'] }, "Current") : undefined,
					command: { id: API_OPEN_EDITOR_COMMAND_ID, title: '', arguments: [syncLogResource, undefined, undefined] },
				});
			}
		}
		return result;
	}