提交 8b6daa69 编写于 作者: R Rachel Macfarlane

Fix includeExtensions checkbox value in issue reporter

上级 372a2562
...@@ -346,7 +346,7 @@ export class IssueReporter extends Disposable { ...@@ -346,7 +346,7 @@ export class IssueReporter extends Disposable {
const value = (<HTMLInputElement>e.target).value; const value = (<HTMLInputElement>e.target).value;
const problemSourceHelpText = this.getElementById('problem-source-help-text')!; const problemSourceHelpText = this.getElementById('problem-source-help-text')!;
if (value === '') { if (value === '') {
this.issueReporterModel.update({ fileOnExtension: undefined, includeExtensions: false }); this.issueReporterModel.update({ fileOnExtension: undefined });
show(problemSourceHelpText); show(problemSourceHelpText);
this.clearSearchResults(); this.clearSearchResults();
this.render(); this.render();
...@@ -356,7 +356,7 @@ export class IssueReporter extends Disposable { ...@@ -356,7 +356,7 @@ export class IssueReporter extends Disposable {
} }
const fileOnExtension = JSON.parse(value); const fileOnExtension = JSON.parse(value);
this.issueReporterModel.update({ fileOnExtension: fileOnExtension, includeExtensions: !fileOnExtension }); this.issueReporterModel.update({ fileOnExtension: fileOnExtension });
this.render(); this.render();
const title = (<HTMLInputElement>this.getElementById('issue-title')).value; const title = (<HTMLInputElement>this.getElementById('issue-title')).value;
......
...@@ -121,7 +121,7 @@ ${this.getInfos()} ...@@ -121,7 +121,7 @@ ${this.getInfos()}
} }
if (this._data.issueType === IssueType.Bug || this._data.issueType === IssueType.PerformanceIssue) { if (this._data.issueType === IssueType.Bug || this._data.issueType === IssueType.PerformanceIssue) {
if (this._data.includeExtensions) { if (!this._data.fileOnExtension && this._data.includeExtensions) {
info += this.generateExtensionsMd(); info += this.generateExtensionsMd();
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册