From 79cb27898d164c9281569f632e4c0b29ccf261b8 Mon Sep 17 00:00:00 2001 From: Charles Gagnon Date: Wed, 27 Jan 2021 14:31:31 -0800 Subject: [PATCH] Fix issue reporter URLs for extensions (#14077) * Fix issue reporter URLs for extensions * Also clean up reporter URL * sql carbon edit --- product.json | 4 ++-- src/vs/code/electron-sandbox/issue/issueReporterMain.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/product.json b/product.json index 48a70371dd..69b2dbdd71 100644 --- a/product.json +++ b/product.json @@ -20,7 +20,7 @@ "darwinBundleIdentifier": "com.azuredatastudio.oss", "linuxIconName": "com.azuredatastudio.oss", "licenseFileName": "LICENSE.txt", - "reportIssueUrl": "https://github.com/Microsoft/azuredatastudio/issues/new?labels=customer%20reported%20issue", + "reportIssueUrl": "https://github.com/Microsoft/azuredatastudio/issues/new", "requestFeatureUrl": "https://go.microsoft.com/fwlink/?linkid=2118021", "privacyStatementUrl": "https://privacy.microsoft.com/en-us/privacystatement", "telemetryOptOutUrl": "https://github.com/Microsoft/azuredatastudio/wiki/How-to-Disable-Telemetry-Reporting", @@ -30,7 +30,7 @@ "asimovKey": "AIF-37eefaf0-8022-4671-a3fb-64752724682e" }, "sendASmile": { - "reportIssueUrl": "https://github.com/Microsoft/azuredatastudio/issues/new?labels=customer%20reported%20issue", + "reportIssueUrl": "https://github.com/Microsoft/azuredatastudio/issues/new", "requestFeatureUrl": "https://go.microsoft.com/fwlink/?linkid=2118115" }, "gettingStartedUrl": "https://go.microsoft.com/fwlink/?linkid=862039", diff --git a/src/vs/code/electron-sandbox/issue/issueReporterMain.ts b/src/vs/code/electron-sandbox/issue/issueReporterMain.ts index eee6674bad..6220bd9450 100644 --- a/src/vs/code/electron-sandbox/issue/issueReporterMain.ts +++ b/src/vs/code/electron-sandbox/issue/issueReporterMain.ts @@ -861,7 +861,7 @@ export class IssueReporter extends Disposable { } } - const queryStringPrefix = this.configuration.product.reportIssueUrl && this.configuration.product.reportIssueUrl.indexOf('?') === -1 ? '?' : '&'; + const queryStringPrefix = repositoryUrl && repositoryUrl.indexOf('?') === -1 ? '?' : '&'; // {{ SQL CARBON EDIT }} return `${repositoryUrl}${queryStringPrefix}title=${encodeURIComponent(issueTitle)}`; }