From 31cc17ea795f9503b5f155b133e78974a6ada6b5 Mon Sep 17 00:00:00 2001 From: jakecastelli <38635403+jakecastelli@users.noreply.github.com> Date: Fri, 29 Mar 2024 04:47:38 +0000 Subject: [PATCH] fix: not disable user data profile export button for github (gist) error Fixes: #209091 Co-authored-by: jazelly --- .../browser/userDataProfileImportExportService.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService.ts b/src/vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService.ts index 987d9f119b96b..df2dd4ba79b02 100644 --- a/src/vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService.ts +++ b/src/vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService.ts @@ -557,6 +557,9 @@ export class UserDataProfileImportExportService extends Disposable implements IU await this.doExportProfile(userDataProfilesExportState); } catch (error) { this.notificationService.error(error); + if ((error as Error).message.includes('User did not consent to login.')) { + exportAction.enabled = true; + } throw error; } }), this.notificationService);