Commit 80f2f30
Fix race condition in branch picker when creating PR (#8628)
* Initial plan
* Initial plan for fixing branch picker race condition
Agent-Logs-Url: https://github.com/microsoft/vscode-pull-request-github/sessions/f9f9a4fa-befb-4089-968f-721dfd44e120
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
* Fix race condition in branch picker when creating PR
Register onDidAccept/onDidHide handlers before async updateItems to
avoid missing early user interactions. Fall back to activeItems when
selectedItems is empty due to items being replaced during debounced
refresh.
Agent-Logs-Url: https://github.com/microsoft/vscode-pull-request-github/sessions/f9f9a4fa-befb-4089-968f-721dfd44e120
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 4dc91c1 commit 80f2f30
File tree
4 files changed
+35
-28
lines changed- src
- @types
- github
4 files changed
+35
-28
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
990 | 990 | | |
991 | 991 | | |
992 | 992 | | |
993 | | - | |
994 | | - | |
995 | | - | |
996 | | - | |
997 | 993 | | |
998 | 994 | | |
999 | 995 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | 53 | | |
60 | 54 | | |
61 | 55 | | |
| |||
122 | 116 | | |
123 | 117 | | |
124 | 118 | | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | 119 | | |
131 | 120 | | |
132 | 121 | | |
| |||
199 | 188 | | |
200 | 189 | | |
201 | 190 | | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
202 | 196 | | |
203 | 197 | | |
204 | 198 | | |
205 | | - | |
| 199 | + | |
206 | 200 | | |
207 | 201 | | |
208 | 202 | | |
| |||
421 | 415 | | |
422 | 416 | | |
423 | 417 | | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
424 | 431 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1161 | 1161 | | |
1162 | 1162 | | |
1163 | 1163 | | |
1164 | | - | |
1165 | | - | |
1166 | | - | |
1167 | 1164 | | |
1168 | | - | |
1169 | | - | |
1170 | | - | |
| 1165 | + | |
1171 | 1166 | | |
1172 | 1167 | | |
1173 | | - | |
| 1168 | + | |
| 1169 | + | |
1174 | 1170 | | |
1175 | 1171 | | |
1176 | | - | |
1177 | 1172 | | |
1178 | 1173 | | |
1179 | 1174 | | |
| |||
1194 | 1189 | | |
1195 | 1190 | | |
1196 | 1191 | | |
| 1192 | + | |
| 1193 | + | |
| 1194 | + | |
| 1195 | + | |
| 1196 | + | |
| 1197 | + | |
| 1198 | + | |
| 1199 | + | |
1197 | 1200 | | |
1198 | 1201 | | |
1199 | 1202 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1136 | 1136 | | |
1137 | 1137 | | |
1138 | 1138 | | |
1139 | | - | |
1140 | | - | |
1141 | | - | |
| 1139 | + | |
1142 | 1140 | | |
1143 | | - | |
| 1141 | + | |
1144 | 1142 | | |
1145 | 1143 | | |
| 1144 | + | |
| 1145 | + | |
| 1146 | + | |
1146 | 1147 | | |
1147 | 1148 | | |
1148 | 1149 | | |
| |||
0 commit comments