report-issue.patch 4.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. diff --git a/src/vs/code/electron-sandbox/issue/issueReporterMain.ts b/src/vs/code/electron-sandbox/issue/issueReporterMain.ts
  2. index 33e66be..a7ade0a 100644
  3. --- a/src/vs/code/electron-sandbox/issue/issueReporterMain.ts
  4. +++ b/src/vs/code/electron-sandbox/issue/issueReporterMain.ts
  5. @@ -468,3 +468,3 @@ export class IssueReporter extends Disposable {
  6. if (title) {
  7. - this.searchDuplicates(title, issueDescription);
  8. + this.searchGitHub('VSCodium/vscodium', title);
  9. } else {
  10. @@ -556,33 +556,2 @@ export class IssueReporter extends Disposable {
  11. - @debounce(300)
  12. - private searchDuplicates(title: string, body?: string): void {
  13. - const url = 'https://vscode-probot.westus.cloudapp.azure.com:7890/duplicate_candidates';
  14. - const init = {
  15. - method: 'POST',
  16. - body: JSON.stringify({
  17. - title,
  18. - body
  19. - }),
  20. - headers: new Headers({
  21. - 'Content-Type': 'application/json'
  22. - })
  23. - };
  24. -
  25. - window.fetch(url, init).then((response) => {
  26. - response.json().then(result => {
  27. - this.clearSearchResults();
  28. -
  29. - if (result && result.candidates) {
  30. - this.displaySearchResults(result.candidates);
  31. - } else {
  32. - throw new Error('Unexpected response, no candidates property');
  33. - }
  34. - }).catch(_ => {
  35. - // Ignore
  36. - });
  37. - }).catch(_ => {
  38. - // Ignore
  39. - });
  40. - }
  41. -
  42. private displaySearchResults(results: SearchResult[]) {
  43. @@ -674,3 +643,3 @@ export class IssueReporter extends Disposable {
  44. sourceSelect.append(this.makeOption('', localize('selectSource', "Select source"), true));
  45. - sourceSelect.append(this.makeOption('vscode', localize('vscode', "Visual Studio Code"), false));
  46. + sourceSelect.append(this.makeOption('vscode', localize('vscode', "VSCodium"), false));
  47. sourceSelect.append(this.makeOption('extension', localize('extension', "An extension"), false));
  48. diff --git a/src/vs/code/electron-sandbox/issue/issueReporterModel.ts b/src/vs/code/electron-sandbox/issue/issueReporterModel.ts
  49. index a58acca..1903a0c 100644
  50. --- a/src/vs/code/electron-sandbox/issue/issueReporterModel.ts
  51. +++ b/src/vs/code/electron-sandbox/issue/issueReporterModel.ts
  52. @@ -77,3 +77,3 @@ ${this._data.issueDescription}
  53. ${this.getExtensionVersion()}
  54. -VS Code version: ${this._data.versionInfo && this._data.versionInfo.vscodeVersion}
  55. +VSCodium version: ${this._data.versionInfo && this._data.versionInfo.vscodeVersion}
  56. OS version: ${this._data.versionInfo && this._data.versionInfo.os}
  57. diff --git a/src/vs/code/electron-sandbox/issue/issueReporterPage.ts b/src/vs/code/electron-sandbox/issue/issueReporterPage.ts
  58. index 6467d66..d425016 100644
  59. --- a/src/vs/code/electron-sandbox/issue/issueReporterPage.ts
  60. +++ b/src/vs/code/electron-sandbox/issue/issueReporterPage.ts
  61. @@ -17,3 +17,3 @@ const reviewGuidanceLabel = localize( // intentionally not escaped because of it
  62. comment: [
  63. - '{Locked="<a href=\"https://github.com/microsoft/vscode/wiki/Submitting-Bugs-and-Suggestions\" target=\"_blank\">"}',
  64. + '{Locked="<a href=\"https://github.com/VSCodium/vscodium/wiki/Submitting-Bugs-and-Suggestions\" target=\"_blank\">"}',
  65. '{Locked="</a>"}'
  66. @@ -21,3 +21,3 @@ const reviewGuidanceLabel = localize( // intentionally not escaped because of it
  67. },
  68. - 'Before you report an issue here please <a href="https://github.com/microsoft/vscode/wiki/Submitting-Bugs-and-Suggestions" target="_blank">review the guidance we provide</a>.'
  69. + 'Before you report an issue here please <a href="https://github.com/VSCodium/vscodium/wiki/Submitting-Bugs-and-Suggestions" target="_blank">review the guidance we provide</a>.'
  70. );
  71. diff --git a/src/vs/workbench/contrib/extensions/electron-sandbox/extensionsSlowActions.ts b/src/vs/workbench/contrib/extensions/electron-sandbox/extensionsSlowActions.ts
  72. index 20154ad..bca59b8 100644
  73. --- a/src/vs/workbench/contrib/extensions/electron-sandbox/extensionsSlowActions.ts
  74. +++ b/src/vs/workbench/contrib/extensions/electron-sandbox/extensionsSlowActions.ts
  75. @@ -148,3 +148,3 @@ class ReportExtensionSlowAction extends Action {
  76. - OS Version: \`${osVersion}\`
  77. -- VS Code version: \`${this._productService.version}\`\n\n${message}`);
  78. +- VSCodium version: \`${this._productService.version}\`\n\n${message}`);