Skip to content

Commit 28b8b10

Browse files
Copilotalexr00
andauthored
Await makeNewIssueFile to fix Edit Description button race condition (#8420)
* Initial plan * Fix: Await makeNewIssueFile in Edit Description button handler Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com> * Also await makeNewIssueFile in createIssue method Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
1 parent a9e4501 commit 28b8b10

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/issues/issueFeatureRegistrar.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -773,7 +773,7 @@ export class IssueFeatureRegistrar extends Disposable {
773773
assignees: template.assignees,
774774
};
775775
}
776-
this.makeNewIssueFile(uri, options);
776+
await this.makeNewIssueFile(uri, options);
777777
}
778778

779779
async createIssueFromFile() {
@@ -1120,7 +1120,7 @@ export class IssueFeatureRegistrar extends Disposable {
11201120
quickInput.busy = true;
11211121
this.createIssueInfo = { document, newIssue, lineNumber, insertIndex };
11221122

1123-
this.makeNewIssueFile(document.uri, { title, body, assignees });
1123+
await this.makeNewIssueFile(document.uri, { title, body, assignees });
11241124
quickInput.busy = false;
11251125
quickInput.hide();
11261126
});

0 commit comments

Comments
 (0)