mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-02 06:21:50 +01:00
"Report Issue" command opens issue reporter, fixes #42269
This commit is contained in:
@@ -391,7 +391,8 @@ export class IssueReporter extends Disposable {
|
||||
}
|
||||
|
||||
const issueTitle = (<HTMLInputElement>document.getElementById('issue-title')).value;
|
||||
const baseUrl = `https://github.com/microsoft/vscode/issues/new?title=${issueTitle}&body=`;
|
||||
const queryStringPrefix = product.reportIssueUrl.indexOf('?') === -1 ? '?' : '&';
|
||||
const baseUrl = `${product.reportIssueUrl}${queryStringPrefix}title=${issueTitle}&body=`;
|
||||
const issueBody = this.issueReporterModel.serialize();
|
||||
shell.openExternal(baseUrl + encodeURIComponent(issueBody));
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user