From 0835d3ed0f831f815dd0e50e3b63b93e6125519c Mon Sep 17 00:00:00 2001 From: Charles Gagnon Date: Fri, 10 Jul 2020 12:31:55 -0700 Subject: [PATCH] Only throw if releaseNotesUrl doesn't exist (#11295) --- src/vs/workbench/contrib/update/browser/update.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/vs/workbench/contrib/update/browser/update.ts b/src/vs/workbench/contrib/update/browser/update.ts index 455bdbdd1f..92dcea0bcc 100644 --- a/src/vs/workbench/contrib/update/browser/update.ts +++ b/src/vs/workbench/contrib/update/browser/update.ts @@ -55,8 +55,9 @@ export class OpenLatestReleaseNotesInBrowserAction extends Action { if (this.productService.releaseNotesUrl) { const uri = URI.parse(this.productService.releaseNotesUrl); await this.openerService.open(uri); + } else { //{{SQL CARBON EDIT}} + throw new Error(nls.localize('update.noReleaseNotesOnline', "This version of {0} does not have release notes online", this.productService.nameLong)); } - throw new Error('This version of Visual Studio Code does not have release notes online'); } }