mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
use our issue bot for duplicate detection (#9667)
This commit is contained in:
@@ -629,7 +629,7 @@ export class IssueReporter extends Disposable {
|
|||||||
|
|
||||||
@debounce(300)
|
@debounce(300)
|
||||||
private searchDuplicates(title: string, body?: string): void {
|
private searchDuplicates(title: string, body?: string): void {
|
||||||
const url = 'https://vscode-probot.westus.cloudapp.azure.com:7890/duplicate_candidates';
|
const url = 'https://ads-probot.westus.cloudapp.azure.com:7890/duplicate_candidates'; // {{SQL CARBON EDIT}} use our server
|
||||||
const init = {
|
const init = {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
@@ -645,12 +645,11 @@ export class IssueReporter extends Disposable {
|
|||||||
response.json().then(result => {
|
response.json().then(result => {
|
||||||
this.clearSearchResults();
|
this.clearSearchResults();
|
||||||
|
|
||||||
// {{SQL CARBON EDIT}}
|
if (result && result.candidates) {
|
||||||
// if (result && result.candidates) {
|
this.displaySearchResults(result.candidates);
|
||||||
// this.displaySearchResults(result.candidates);
|
} else {
|
||||||
// } else {
|
throw new Error('Unexpected response, no candidates property');
|
||||||
// throw new Error('Unexpected response, no candidates property');
|
}
|
||||||
// }
|
|
||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
this.logSearchError(error);
|
this.logSearchError(error);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user