Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

show notification after downloading successfully #193582

Merged
merged 1 commit into from
Sep 20, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/vs/workbench/contrib/userDataSync/browser/userDataSync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1150,6 +1150,7 @@ export class UserDataSyncWorkbenchContribution extends Disposable implements IWo
const uriIdentityService = accessor.get(IUriIdentityService);
const fileService = accessor.get(IFileService);
const userDataSyncMachinesService = accessor.get(IUserDataSyncMachinesService);
const notificationService = accessor.get(INotificationService);

const result = await fileDialogService.showOpenDialog({
title: localize('download sync activity dialog title', "Select folder to download Settings Sync activity"),
Expand Down Expand Up @@ -1185,6 +1186,8 @@ export class UserDataSyncWorkbenchContribution extends Disposable implements IWo

return userDataSyncWorkbenchService.downloadSyncActivity(uriIdentityService.extUri.joinPath(result[0], indexes[0] !== 0 ? name : `${name} ${indexes[indexes.length - 1] + 1}`));
});

notificationService.info(localize('download sync activity complete', "Successfully downloaded Settings Sync activity."));
}

}));
Expand Down
Loading