mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-14 01:25:37 -05:00
Fix app name in Report Issue dialog (#1292)
This commit is contained in:
@@ -462,11 +462,12 @@ export class IssueReporter extends Disposable {
|
||||
response.json().then(result => {
|
||||
this.clearSearchResults();
|
||||
|
||||
if (result && result.candidates) {
|
||||
this.displaySearchResults(result.candidates);
|
||||
} else {
|
||||
throw new Error('Unexpected response, no candidates property');
|
||||
}
|
||||
// {{SQL CARBON EDIT}}
|
||||
// if (result && result.candidates) {
|
||||
// this.displaySearchResults(result.candidates);
|
||||
// } else {
|
||||
// throw new Error('Unexpected response, no candidates property');
|
||||
// }
|
||||
}).catch((error) => {
|
||||
this.logSearchError(error);
|
||||
});
|
||||
|
||||
@@ -59,13 +59,14 @@ export class IssueReporterModel {
|
||||
assign(this._data, newData);
|
||||
}
|
||||
|
||||
// {{SQL CARBON EDIT}}
|
||||
serialize(): string {
|
||||
return `
|
||||
Issue Type: <b>${this.getIssueTypeTitle()}</b>
|
||||
|
||||
${this._data.issueDescription}
|
||||
|
||||
VS Code version: ${this._data.versionInfo && this._data.versionInfo.vscodeVersion}
|
||||
SQL Operations Studio version: ${this._data.versionInfo && this._data.versionInfo.vscodeVersion}
|
||||
OS version: ${this._data.versionInfo && this._data.versionInfo.os}
|
||||
|
||||
${this.getInfos()}
|
||||
|
||||
@@ -23,6 +23,7 @@ suite('IssueReporter', () => {
|
||||
});
|
||||
});
|
||||
|
||||
// {{SQL CARBON EDIT}}
|
||||
test('serializes model skeleton when no data is provided', () => {
|
||||
const issueReporterModel = new IssueReporterModel();
|
||||
assert.equal(issueReporterModel.serialize(),
|
||||
@@ -31,7 +32,7 @@ Issue Type: <b>Feature Request</b>
|
||||
|
||||
undefined
|
||||
|
||||
VS Code version: undefined
|
||||
SQL Operations Studio version: undefined
|
||||
OS version: undefined
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user